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
3
votes
1 answer

PHP CS Fixer File Watcher causes File Cache Conflict in PHPStorm

I use a File Watcher defined as this Here is my watchers.xml file:
3
votes
1 answer

Creating File Watchers in VSCode

I am trying to move away from WebStorm and trying to configure VS Code to get few functionalities of WebStorm. I am trying to implement File Watcher functionality in VS Code. I used to have File Watchers for Jade and Stylus in WebStorm. I already…
0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184
3
votes
1 answer

Powershell to find machine that created a file

I have a script that monitors the filesystem using FileWatcher.IO in Powershell. Currently it finds the user that made the file with: $owner = (Get-Acl $path).Owner And it finds the computer that the file was made on with: $Computer = get-content…
Cryptie
  • 31
  • 1
3
votes
0 answers

How to restart a file watcher robustly?

I'm monitoring a large directory of 500GB - 1TB with a file watching service that fills my database. During an initial scan, starting up the scanning and native watching events (add file, add directory), without even any postprocessing (metadata,…
Voy
  • 5,286
  • 1
  • 49
  • 59
3
votes
1 answer

How to trigger file watcher on a entire directory in Webstorm

I'm using Webstorm file watcher to compile my CoffeeScript. My problem is that I have refactored the strutcure of my project's files. Can I remove all files in /bin directory and tell to webstorm to apply his file watcher compile command on all…
Emrys Myrooin
  • 2,179
  • 14
  • 39
3
votes
2 answers

UglifyJS file watcher in IntelliJ minifies already minified files during build

I have an UglifyJS file watcher set up in IntelliJ IDEA, and it works great while I'm editing -- I modify the source js, the minified version gets created next to it automatically. However, when I run an Ant build, and it copies the minified…
enigment
  • 3,316
  • 7
  • 30
  • 35
3
votes
3 answers

Monitoring a particular file closure c#

I am developing a windows application to compliment our web application, it is a small document management system like dropbox, I have to automatically sync the files on its closure, for e.g. if a .dwg (AUTOCAD) file is opened through my…
midhun
  • 39
  • 4
3
votes
1 answer

Monitor remote shared-Folder (Windows/SMB) using WatchService

I am trying to monitor a remote folder using WatchService (java.nio.file.*). Everything works fine for local folders. However I was unable to figure out how to monitor a remote share. Can I pass credentials along? (If the user executing the code…
Stephanie
  • 101
  • 1
  • 6
2
votes
2 answers

Look for specific file and execute stored procedure

One of my processes is writing data into text file and then a sql stored procedure stages that data in one of the sql table. As of now I am not sure about the timing of the file, so I need a file watcher that will look for that file and when that…
SS25
  • 61
  • 7
2
votes
1 answer

npm chokidar firing event twice

I'm using the NPM package chokidar to watch for the new files. I want to execute a function whenever a new file is created or an existing file is updated. The problem is whenever a new file is created the chokidar NPM package fires 2 events that are…
Amarjit Singh
  • 2,068
  • 19
  • 52
2
votes
1 answer

Is a timer or filewatcher more effecient when watching for a process to close

I have two programs running. Program1.exe and Program2.exe. Program1 is written in C# .Net4.8 and is used to upload/download transaction from the web, check for updates and handle various other tasks that Program2 cannot. Program2 is written in VB6.…
2
votes
1 answer

How to authenticate a cloud functions with the Api https://www.googleapis.com/drive/v3/changes/watch?

I am developing an application that interacts with Google Drive and will work as follows: When a user adds/modifies a file in Drive Share, my application will receive a notification and I will handle it. I did the development locally using Auth2…
2
votes
1 answer

How does System.IO.FileSystemWatcher works under the hood?

I would like to understand how does System.IO.FileSystemWatcher works under the hood? Because I have a requirement where I need to watch all the files present under 100 or more Folders where each folder will have around 1K files. I am not sure if I…
2
votes
0 answers

Git operations that changes file system doesn't trigger FileWatcher

I have an interesting problem, my system is a winforms, but also console app, that watchers for file changes in a folder. Everything works great, but if that folder is a local git repo and there are operations that would change the files, the file…
RollRoll
  • 8,133
  • 20
  • 76
  • 135
2
votes
1 answer

Jetbrains Rider filewatcher is not compiling scss to css

I started using Rider a few days back and I wanted to start using SCSS in my projects and compile them back to CSS, I was messing around with the File Watcher but i couldn't get it to work, I keep getting this message in my console when I turn show…
Kevin_Vink
  • 110
  • 1
  • 9
1 2
3
22 23