1,240 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
5
answers
115
views
How to pause method execution until at least N seconds have passed since the last change to a directory?
I have a process that needs to intermittently move some files from one directory to another. Before I move the files, I need to ensure that a user isn't currently adding files to the directory - if ...
1
vote
1
answer
71
views
Identify changes to FS (file) every second forcing file created program flushing the write buffers
I need application to identify changes to the file system, particularly to identify file creation and updates. The text files are being created by another application, and are not closed until that ...
1
vote
0
answers
167
views
How to Watch changes in folders in KUBERNETES / go lang
In the Kubernetes environment, we are using configmap as a mount to a specific folder.
The configmap is often modified and updated to kubectl application -f [configmap-name]
I want to use fsnotify to ...
0
votes
1
answer
66
views
windows service app with FileSystemWatcher starts and then stops
I have a filesystemwatcher watching a folder where cameras save the files. It's supposed to add the name/date to a database so they can be deleted at a later date.
watcher = New System.IO....
1
vote
1
answer
685
views
FileSystemWatcher on Windows Service .NET 8 [IHostedService]
Im trying to create a windows service application with .NET 8 using as a Hosted Service, the idea of my app is Watch for a list of folders. The problem is that I'm losing the event Created fired by ...
1
vote
0
answers
89
views
C# filesystemwatcher not triggering for all files in watch folder
I am using C# filesystemwatcher to monitor a folder for new files that are generated from two web sites running on the same machine. Sometimes new files trigger my event handler and sometimes they do ...
2
votes
0
answers
62
views
FileSytemWatcher error event to Observable
The "Creating Observable Sequences" section of the e-book INTRODUCTION TO RX.NET (by Ian Griffiths and Lee Campbell) describes how to transform file system events generated by ...
2
votes
1
answer
262
views
FileSystemWatcher not working when running as a Windows service in .NET 8
I have an app that works well as a cmd line app, but when running as a service, the FileSystemWatcher stops working.
I have validated that the service has access to the files as it's using the same ...
0
votes
0
answers
36
views
Powershell error when using FileSystemWatcher
I wrote code with the WPF window to synchronize files between two folders. After clicking the Run button, the code will run and monitor changes in folder f1. If a change is detected, it will execute ...
0
votes
0
answers
63
views
How to incorporate file renaming with FileSystemWatcher?
I have a FileSystemWatcher script that monitors the XML-TO-TRANSFORM folder for XML and audio files. When a new file is created in that folder, the FileSystemWatcher detects it, grabs the XML, applies ...
-1
votes
2
answers
85
views
How can FileSystemWatcher detect deletions from multiple volumes?
I wrote a program which can open or empty the recycle bin and lives in the tray. I am using SHEmptyRecycleBin to perform cleaning and FileSystemWatcher to detect changes in the recycle bin folder. The ...
0
votes
0
answers
34
views
Dynamic Log level by monitoring configuration file with filesystem watcher is resulting in system.IO exception
I want to reload my log level by changing configuration file without application restart. I added filesystem watcher to monitor changes in config
static void OnConfigFileChanged()
{
...
1
vote
0
answers
121
views
IOptionMonitoring<>.OnChange not triggered on some K8s Pods
I am using .net6.0 And I want to monitor some changes from the configuration files and react to the changes.
I have the following code to register the config file:
{
...
new ConfigurationBuilder()
...
2
votes
0
answers
65
views
FileSystemWatcher works reliably, unless I write to a log file
I am using a fileSystemWatcher to watch for a xlsx to be saved. This is registered as a renamed event, on which I want to execute a python script. I then want to save this action to a log file created ...
1
vote
1
answer
51
views
Powershell - Nested loops seeming to ignore if statement
I have a feeling this may be a fairly simple one. Basically, I have an application that, during runtime execution, generates temporary xml files. These can be useful for troubleshooting purposes. ...