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

How to get file name when file change is observed via watch_file

I am currently facing an issue which I don't know how to fix. I got the following Julia code: while true print(watch_file("test")) end So this should get me all the file changes in the directory named "test". At least on windows. Now thats all…
Distjubo
  • 959
  • 6
  • 21
2
votes
3 answers

Detect a file that will be modified

I have a large directory containing files that are modified by a seperate system at varying intervals. I am running a watcher on this directory to detect which files are modified. I'm wondering if there is some sort of trigger that occurs when a…
2
votes
1 answer

FileSystemWatcher detection of zip files

I'm using FileSystemWatcher class to detect new files created in a directory. I'm creating txt and zip files. It's detects perfectly txt files but not the same with zip file. I know if anyone has worked with that and your experience. Here is my…
2
votes
0 answers

PHPStorm File Watcher not working while not in focus

I have the following SASS file watcher configuration: My goal is to enable auto-synchronization of .SASS & .CSS with the chrome dev-tools, as explained here. However, I noticed that the file watcher is active & recompile's the .SASS files only…
losnir
  • 1,141
  • 9
  • 14
2
votes
1 answer

How to use the Closure Compiler File Watcher in PHP Storm

I am trying to get Google's closure compiler to work with PHP Storm for minifying javascript files. I'm not quite sure what i'm doing wrong trying to get this to work and I can't find any guides/tutorials on the web anywhere other than PHP Storm's…
John Mellor
  • 2,351
  • 8
  • 45
  • 79
2
votes
0 answers

How to copy files with IntelliJ

I'm using IntelliJ 14.1.1 on Windows. I have a project (mainly java) with a little web module, built with maven. In my web module, I'd like to accomplish this scenario : I edit a Javascript file located in the web module, folder resources/js When…
SmeagolGollum
  • 107
  • 1
  • 14
2
votes
2 answers

How do you set up watchers in Webstorm?

I keep getting message boxes suggesting that I should install file watchers. When I click 'Add Watcher' and press 'OK' on the dialog it gives the error... Please set program to run Where do I get the programs from?
Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
2
votes
3 answers

How to make PhpStorm File Watcher also watch subfolders

I'm currently using YUI Compressor to compress my CSS files in a project which worked fine but because of multiple files for plugins I decided to use subfolders in my CSS folder. How can I make the File Watcher also work on subfolders? I can't seem…
Jeroen
  • 343
  • 1
  • 2
  • 12
1
vote
1 answer

Run watcher fsinotify to watch configuration file changing | GO

I am trying to run a watcher in go using fsinotfiy lib to follow configuration json file changes - use this code func waitForChangeEventLoop(w *fsnotify.Watcher) (error) { for { select { // Read from Errors. case _, ok :=…
1
vote
1 answer

CSS source map files not generated with PhpStorm File Watcher

I have a project where in the public directory, there is a scss and a css directory. When I modify my scss files, they are compiled as css inside the correct directory. The problem I am getting is I can't manage to generate the source file…
HectorB
  • 113
  • 6
1
vote
0 answers

Watchdog in Python to look for filesystem changes (Windows 10)

On my Mac, my code is working. Why doesn't it work on Windows 10? from twilio.rest import Client import time import hashlib from datetime import date from watchdog.observers import Observer from watchdog.events import…
durmex
  • 119
  • 6
1
vote
2 answers

StorageItemQueryResult.ContentsChanged event not fired

I want to monitor folder for recursive changes. I use this code: public async void StartMonitor(string folderPath) { StorageFolder storageFolder = await StorageFolder.GetFolderFromPathAsync(folderPath); QueryOptions queryOptions = new…
N. Saw
  • 103
  • 2
  • 7
1
vote
0 answers

Listening for a camera capture using FileObserver: how to deal with temporary .pending files and get photo into byte array

I'm writing an Android Service to detect when an image is captured using the camera. Once it's captured I need to get the image contents into a byte array. Here are the important parts of the onStartCommand method of the Service: @Override public…
ChristianF
  • 1,735
  • 4
  • 28
  • 56
1
vote
0 answers

How to configure PostCSS Autoprefixer as PhpStorm's File Watcher

Thank you for your attention and your help! I really do appreciate it! I use PhpStorm and node.js. Can you please describe as simple as possible how to install globally PostCSS and Autoprefixer using terminal and configure PhpStorm's file watcher? I…
1
vote
1 answer

Java Folder/File watch

I am trying to build a application that watch a folder and its sub folders to detect file creation or modification. Total files to watch will be growing day by day. I had tried with java nio WatchService and apache common FileAlterationObserver.…
J-007
  • 206
  • 2
  • 10