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

file watcher in python 3.5 using library watchgod

Hi everyone i am trying to build a file watcher in python 3.5 using watchgod. I want to continuously watch a directory and if any file is added then i want to send a list of added files to another program which will perform a series of task.…
Rajat
  • 19
  • 1
  • 8
0
votes
1 answer

Karma AutoWatch not working when using Docker and Webpack

Using Karma's AutoWatch with Webpack, normally it re-runs all tests when a file is saved at the Webpack entrypoint. All I have to do is set autoWatch: true in the Karma config. Once I put it in a Docker container, saving files does not cause Karma…
Kevin Ghadyani
  • 6,829
  • 6
  • 44
  • 62
0
votes
1 answer

Best way to handle changing nodes? - C# File Watcher and Clustered File Server

We recently went to a CSVFS clustered file server. I have a file watcher that's monitoring 4 directories for OnCreated and OnRenamed events but whenever the node changes, it causes a buffer overflow with the error Too many changes at once in…
Andrew
  • 123
  • 1
  • 9
0
votes
0 answers

QFileSystemWatcher - does it need to run in another thread?

I have a class that does some parsing of two large (~90K rows, 11 columns in the first and around ~20K, 5 columns in the second) CSV files. According to the specification I'm working with the CSV files can be externally changed (removing/adding of…
rbaleksandar
  • 8,713
  • 7
  • 76
  • 161
0
votes
1 answer

PhpStorm - Sass File Watcher - Output directory of compiled CSS

Sorry in advance if I'm posting in to the wrong stack. I'm new to PhpStorm (coming from NetBeans) and I'm struggling to configure a File Watcher to compile my Sass files to the correct location. The file I need compiling is located…
Andrew Berridge
  • 451
  • 5
  • 15
0
votes
3 answers

Output minified javascript file to a different directory with YUI Compressor File Watcher in IntelliJ

I'm using YUI Compressor JS as my file watcher in intellij to minify my javascript files. The compressor works fine when i set 'Arguments' and 'Output path to refresh' parameters like below: Arguments = $FileName$ -o…
0
votes
1 answer

PhpStorm does not use a profile that knows the Java home path

I have configured a File Watcher in PhpStorm at ./node_modules/.bin/yuicompressor. Whenever this executes, I get a prompt on my Macbook to install Java. Java is installed and the paths have been set so that when I execute java in the PhpStorm…
tylersDisplayName
  • 1,603
  • 4
  • 24
  • 42
0
votes
2 answers

Many same Closure Compiler watcher tasks in WebStorm at the same time

In WebStorm, my project is a library made up of 10 js files and Closure Compiler, as file watcher in WebStorm, compiles the files in a single one. Arguments for Closure Compiler file watcher are ... --js 1.js --js 2.js ... --js 10.js…
J.P. Duvet
  • 630
  • 6
  • 16
0
votes
0 answers

How to update GUI from FileWatcher event with Task-based Asynchronous Pattern (TAP)

Recently I started learning C# by writing a simple application that watches directory and updates form based on lines written to file in that directory. At some point I was stuck with common InvalidOperationException while trying to update form…
xndr_78
  • 1
  • 2
0
votes
1 answer

File Watcher in PhpStorm minify and normal CSS

I've read this question: How to Minify CSS with SCSS File Watcher in PhpStorm IDE. And it was very helpful. But I want to have a normal stylesheet, where I can see the lines in development. And I want a minified stylesheet for the live…
Refilon
  • 3,334
  • 1
  • 27
  • 51
0
votes
1 answer

Folder Monitoring/Batch file execution

I am attempting to create a script that will monitor a folder (a Dropbox folder). When I need to shutdown my PC, I will just drop a file into the Dropbox folder. The script will see the new file, run a shutdown batch file, and delete the file in the…
ayrnee
  • 31
  • 5
0
votes
2 answers

Power Shell Script to Monitor Folder for File change and print the information on console

Looking for help I am trying to write a utility that monitors any file change in Folder and print the info on the power shell console Found lot of help from below question, Thanks to OP and answers in the thread. Powershell script to run a .bat file…
0
votes
3 answers

The process cannot access the file because it is being used by another process - Filewatcher - C# - Console Application

I was trying to detect a file in a folder using Filewatcher and move the file to a new location. While doing so using a console application, I am getting error as The process cannot access the file because it is being used by another process. I am…
METALHEAD
  • 2,734
  • 3
  • 22
  • 37
0
votes
0 answers

How it works FileWatcher?

Does anyone know to explain in detail and in-depth, how it works FileWatcher component? As it receives events? Through which channels travels signal change occurred? Who initiates that signal? As a signal change is registered in the…
0
votes
1 answer

How to remove the "Save Print output as" dialog when printing a txt file in c#

Hello stackoverflow community, I am developing a simple windows form application that has a listener in a specific directory listening for a txt file, if the listener detects a new file, it will automaticly send the txt file to a local default…