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

SCSS filewacher/compiler takes far too long to 'execute' in phpstorm

I'm using phpstorm and I've put a filewatcher on my styles.scss file and have noticed that it takes a very long amount of time to compile changes into my styles.css file. For example, if I add new attributes to any class, id, element the compiler…
beefsupreme
  • 123
  • 10
1
vote
0 answers

Is it possible to configure rerun to run a check before a server script?

I have a rerun command that looks like this: CFG="cfg/nginx/my-app.conf" rerun -p "$CFG" -- \ nginx -p . -c "$CFG" -t && \ nginx -p . -c "$CFG" The idea is that every time the nginx config changes the nginx server should be shut down,…
Hubro
  • 56,214
  • 69
  • 228
  • 381
1
vote
2 answers

Check for the file system watcher in C#

I have written this code for watching files in my system, but its not alerting any modificationms in the folder or file. How can I achieve this? I am not understanding as it does not show any exceptions or errors. static void Main(string[] args) { …
Abb
  • 3,051
  • 3
  • 17
  • 34
1
vote
1 answer

Rename and move file with Babel WebStorm filewatcher

I'm trying to move to WebStorm (which I'm currently evaluating as a ST3 replacement) the following gulp workflow: upon each file save transpile with babel inline sourcemaps rename file from file.es6.js to file.js move it from src/ tree to dist/…
Zlatko
  • 18,936
  • 14
  • 70
  • 123
1
vote
0 answers

LESSC to compile to a custom path using environment variable

Bottom line I need lessc to compile my main.less file to $CATALINA_EC_TMP/main.css I'm working on this project, where I need to generate multiple output css files originating from the same source (LESS file) using LESSC. So with Jet Brain's…
1
vote
1 answer

Tracking a File or a document using web API

Wanted to ask a open question about tracking a file we are trying to implement a system where we can track and monitor documents as they move around or are e-mailed or circulated over intranet. This is what we are thinking of doing (assuming…
fireholster
  • 622
  • 1
  • 9
  • 22
1
vote
0 answers

How to share File Watchers between projects in IntelliJ?

Is there any way to share File Watcher settings between different projects in IntelliJ? When I go into the settings for File Watchers it says "For current project", however there is no way to change this to a global setting.
Rick
  • 3,240
  • 2
  • 29
  • 53
1
vote
1 answer

Sass Intellij File Watcher Output path Ubuntu

I am trying to compile a .scss file in sass directory to a sibling css directory. However, I am not able to. I dint find enough documentation on the file watcher plugin as well. Currently, it is compiling into the sass directory. And I need to…
Bhargav Ponnapalli
  • 9,224
  • 7
  • 36
  • 45
1
vote
1 answer

file watching in a directory using perl

i need to watch files that fall under a directory.I have coded the below script in perl . but it is not doing what i want . whenever a file or files arrives , it has to do a movement . And then it has to keep watching files again. the script…
prasannads
  • 609
  • 2
  • 14
  • 28
1
vote
1 answer

Phpstorm scss file watcher issue

I have this file structure and wacther configuration: The problem is that when I save my scss file the css file is updated in IDE only if I switch focus from IDE window and back again. P.S.: if I configure scss watcher to compile css files in the…
Ivan G
  • 404
  • 1
  • 4
  • 17
1
vote
1 answer

Continuously reading java WatchEvents

I'm trying to synchronize two folders and their sub directories between a client and a server. I have a modified version of this class which I've posted below. In my Client class, I create a WatchDir object and call its processEvents() method in an…
WongWray
  • 2,414
  • 1
  • 20
  • 25
1
vote
1 answer

How to get filename on file chaged event in C++

I have followed this guide from MS and it works fine. Now I would like to ask you how to retrieve the filename of the file that was changed in the directory?
7heViking
  • 7,137
  • 11
  • 50
  • 94
1
vote
1 answer

How to synchronize files state in PHPStorm ( IDEA ) from filewatcher script

I create file watcher script for converting *.ts into *.js ( that's dose n't matter ) - it works perfectly, but Storm update output file state not in realtime. I should to wait or run Synchronize command from context menu. Is there any way to do…
1
vote
1 answer

Node.js and high amount of watchers with fs

I'm using file system native library of nodejs, but i have problems with fs.watch, high amount of watchers is open, and sometimes node returns ENOSPC error, i localize the problem with linux kernel to open watchers and find that the dropbox app was…
Kalamarico
  • 5,466
  • 22
  • 53
  • 70
0
votes
2 answers

File watcher loop cannot continue where it left off when re-running the code

I have create this File Watcher Loop, when I run the code, it scans a specific folder for .json files and append to an 'output.xls' file. Then the code continues to run in a loop, scanning new files in the folder, and repeat the process. This works…
Eric Do
  • 5
  • 3