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

PhpStorm: Automatically deploy .css files after File Watcher transpiled .less / .sass files

I am deploying my documents automatically to the server. When I save my .less / .sass files, the File Watcher transpiles them, but only uploads the source files, not the transpiled .css file. Is there a way that the .css file is also being deployed?
user3553562
  • 119
  • 1
  • 8
10
votes
1 answer

PhpStorm File Watcher for SCSS stopped working

The File Watcher suddenly stopped working and producing the error below: Automatic upload: check for related changes from File Watchers took too much time and was cancelled. Here's my watcher settings: The full Arguments field value: --no-cache…
Jed
  • 1,664
  • 8
  • 33
  • 65
9
votes
1 answer

FileSystemWatcher with the console application

To send bulk email in my web application I am using filewatcher to send the application. I have planned to write filewatcher with the console application instead of windows service or scheduler. I have copied the executable file shortcut in the…
Jeeva J
  • 3,173
  • 10
  • 38
  • 85
9
votes
3 answers

HDFS file watcher

Can I have file watcher on HDFS? Scenario: The files are landing on HDFS continuously.I want to start a Spark Job once the number of files reached a threshold(it can be number of files or size of the files). Is it possible to implement file watcher…
Abhinandan Satpute
  • 2,558
  • 6
  • 25
  • 43
8
votes
4 answers

Increase watchers in node docker image

Need to increase watchers in docker image, as it fails on expo publish with the error [11:39:08] Error: ENOSPC: System limit for number of file watchers reached, watch…
Hashim
  • 159
  • 1
  • 1
  • 12
8
votes
2 answers

golang execute function after http.ListenAndServe

I am beginning to learn golang by creating a simple http server func main() { f, err := os.OpenFile("testlogfile", os.O_RDWR | os.O_CREATE | os.O_APPEND, 0666) if err != nil { fmt.Println("error opening file: %v", err) } …
Ajey
  • 7,924
  • 12
  • 62
  • 86
8
votes
1 answer

How do you set up Jade file watcher in Webstorm?

I set up a Jade file watcher in the following way in WebStorm. However it does not produces any HTML files. How is it possible to convert Jade file to HTML file with WebStorm 9.0.3?
user977828
  • 7,259
  • 16
  • 66
  • 117
7
votes
2 answers

.NetCore - FileSystemWatcher on a network drive, unsafe code Win32 API crash

I have a small Dotnet core program (3.1.8), with some FileWatchers. They watch folders on a network drive. With some load (200 - 250 files maximum here), the program crashes unexpectedly. These files come at the same time, moved by another process…
Rayyyz
  • 89
  • 11
6
votes
2 answers

System.IO.FileSystemWatcher only notifies once on edited files

The script uses file system watcher to monitor a honeypot folder, and report back any changes (edit, rename, delete or create), then performs some actions. The actions work fine when creating, renaming and deleting. But when editing, I can only make…
5
votes
0 answers

VSCode TypeScript intellisense takes forever to load remotely

Every time I connect to Remote Linux Server via VSCode, there's a notification popping up - Initializing JS/TS language features. The relevant extension to this is probably "TypeScript and JavaScript Language Features". I think I would probably…
5
votes
2 answers

Why is IntelliJ not compiling TypeScript on save?

The TypeScript plugin is installed for IntelliJ IDEA (v2020.1 EAP), but TypeScript files are not being compiled when I save them, despite having "Recompile on changes" checked: I can manually run tsc -w, and everything compiles. Do I need to add a…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
5
votes
2 answers

Do we really need VS Code's file watchers? What do they do? How can they be disabled?

VS Code is consuming my CPU resources intensively- mainly because of the file watcher. What does the file watcher do? In a react code, we already have hot-reload, do we really need this? How can we stop the file watcher completely? I tried to add…
Gaurav Sobti
  • 569
  • 1
  • 4
  • 14
5
votes
1 answer

c# FileSystemWatcher Created event not firing for all files created

I want to insert file information into a database for all files created in a directory. My program will do that if I drop small numbers of files in the directory but it doesn't get them all if I drop larger amounts in the directory all at once (I…
Gharbad The Weak
  • 1,541
  • 1
  • 17
  • 39
5
votes
2 answers

Most Efficient and Reliable Way to Permanently Monitor File Creation in a Specific Folder

I need to monitor a folder and perform some action each time a file is created. I have 2 solutions - one using WMI, where I can use this filter (called from either a .MOF file or a Powershell script which registers permanent MWI event bindings) to…
Bassie
  • 9,529
  • 8
  • 68
  • 159
5
votes
1 answer

Unregister a registered filewatcher event does not work

I want to watch a folder with powershell and I am a PS beginner. That script works ONE time when I start the script. But when I have to restart the script again because I changed some script code I get this error message: Cannot subscribe to the…
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
1
2 3
22 23