Questions tagged [file-watcher]

A utility or library to perform actions when files are updated, added or deleted.

Common issues for file watcher utilities include

  • How to determine when files being added are fully available (IE: If a file is being FTPed to a directory, has the FTP process finished?)
  • How to notify interested consumers that a file has been updated/added/deleted
  • Scheduling issues such as whether the file watcher runs continuously or every xx seconds or minutes.
  • Whether a file is moved/archived after processing
  • Whether multiple input files that match a wildcard can be processed concurrently.

If your question is about the .NET component FileSystemWatcher also include the tag . For the Qt toolkit QFileSystemWatcher class also include the tag .

332 questions
1
vote
0 answers

PhysicalFileProvider path to windows share on Linux container

I have a service that uses PhysicalFileProvider to watch files on a windows share. When I run this code on windows it works. When I run it inside a docker container it does not work. How should I specify the folder path in my appsettings to run on…
BankMan101
  • 109
  • 9
1
vote
0 answers

Issue with ColdFusion Directory watcher Logs

I am using ColdFusion Directory watcher and interval=60000; what we were observed, we are seeing the logs very continuously as below ( I have two directories dirWatcherLocal and DataFiles under Test folder) E:\App\Test\dirWatcherLocalis…
1
vote
1 answer

Remove-Item -Force on NULL Filewatcher file removed 1000 files on my server, is this a Powershell bug? Or just my bad code?

So, I am developing a script using FileSystemWatcher similar to this one: https://powershell.one/tricks/filesystem/filesystemwatcher I only use the Created event. I then run the following code on the files that are "Created." I met a really…
1
vote
0 answers

FileSystemWatcher program works on the computer where the project is compiled. The exe does not work on any other

Ive made a program which is looking at the c drive during an installation of another piece of software. This is to detect the files being installed and where. It works on the computer where i build the project, but not on any other machine. The…
1
vote
1 answer

Java File Watcher doesn't recognize file changes

I'm trying to use Java File Watcher to listen for changes in a file. When I edit the file with vim the File Watcher detect the changes. But when I replace word in file using sed, the file watcher doesn't recognize the changes. I can see the modify…
Mooo
  • 61
  • 6
1
vote
1 answer

Why the fanotify_fid Linux manpage example code fails (on open_by_handle_at())?

I'm testing fanotify, on Linux 5.4 (also tested on 5.8); for the tests, I'm using the fanotify_fid.c example in the fanotify(7) manpage. Now, the code seems to be very poor - I think there are at least a couple of bugs - but I managed to make it…
Marcus
  • 5,104
  • 2
  • 28
  • 24
1
vote
0 answers

How to check Directory is Replaced using FileWatcher

I have created a File watcher for watching the directory and files, here I could get a change event when files are replaced. but for directory only created event triggers not replaced event. How to get the event of replaced on directory replace? my…
Santhosh Nayak
  • 2,312
  • 3
  • 35
  • 65
1
vote
1 answer

Waiting for WatchService event to be done processing before accessing the event file

I am watching a directory using java.nio.file.WatchService; and every time a file is created I call processFile() passing it the File handle. Here is the code for the watcher: boolean poll = true; System.out.println("Watching Directory:…
Snedden27
  • 1,870
  • 7
  • 32
  • 60
1
vote
1 answer

Displaying form based on FileSystemWatcher event

I'm creating a windows forms app for educational purposes, it's base idea is to have a download manager which will move files from default Downloads folder to the folder with a name of files extension. I created class MyFileWatcher which basically…
Working Pickle
  • 122
  • 3
  • 10
1
vote
2 answers

Is there any alternative for FileSystemWatcher in .NET C#?

I am new to .NET Core and currently working on a use case where I need to process the files in a directory. The application is using the FileSystemWatcher class to monitor the directory(s). Below is the code that I am using to monitor the…
Avinash
  • 1,363
  • 2
  • 15
  • 28
1
vote
3 answers

PowerShell File Watcher Register-ObjectEvent - Wait For File To Complete Copying

The below code is checking for new files in a specified directory $folderCompleted. Currently, when a small file is placed into that directory (~1MB) the Move-Item command and other file reading checks complete successfully. However when a large…
Pie
  • 856
  • 4
  • 12
  • 33
1
vote
2 answers

"jest --watch": Error: ENOSPC: System limit for number of file watchers reached, watch

Running jest, first with no arguments, then with the --watch flag. owner@G700:~/cp/projectName$ npm run test > project_name@1.0.0 test /home/owner/cp/projectName > jest PASS src/classes/setupWizard/__tests__/SetupRole.test.ts ✓ SetupRole (4…
Sean D
  • 3,810
  • 11
  • 45
  • 90
1
vote
1 answer

How to use File Watcher from Spring Integration only for Waiting, NOT for Moving?

I'm learning about Spring Integration in a Spring Boot app, and I need to make an app to wait for .txt files in a folder, and then do some processing, and then put the resulting .txt files in another folder. So the app should wait for inputxxx.txt…
elvis
  • 956
  • 9
  • 33
  • 56
1
vote
0 answers

FileSystemWatcher doesn't trigger if the file is changed from solution explorer indeed it triggers from file explorer

I am facing a strange issue with FileSystemWatcher. The folder am watching is "publishing". The file am watching is "settings.json" which is in publishing folder inside one project Problem : When settings.json is changed inside visual studio 2019…
1
vote
0 answers

Python Watchdog PollingObserverVFS Performance enhancement

I am running PollingObserverVFS on a directory that is on Dell ISILON Storage that has over 2 million files and it takes around 2 hours 30 min to detect changes. Is there a way to improve performance to detect changes faster like parallel processing…
Vaibav
  • 77
  • 1
  • 7