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
0 answers

Haskell Twitch (high level file watcher DSL) executing 2 times

I want to use Twitch package to copy any javascript files in the "central" directory to the "back" and "front" directories. This is the code: {-# LANGUAGE OverloadedStrings #-} module Main where import Data.List ( isPrefixOf , tails ,…
RamiroPastor
  • 1,085
  • 1
  • 7
  • 18
2
votes
0 answers

Haskell Twitch Library not working as expected

I am playing around with the Twitch library: {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} module Main where import Twitch import Data.Default import Turtle.Prelude import RIO main :: IO () main = do print "hi" …
Fabian Schneider
  • 799
  • 1
  • 13
  • 40
2
votes
0 answers

Why macOS filesystem watchers are slower than Linux and doesn't work in WebStorm?

I'm using Webpack with HMR (Hot Module Reload) that allows to rebuild my source code on the fly and to update the loaded application right in-browser. It uses filesystem watchers (through chokidar) to monitor the actual changes. I've noticed that…
Slava Fomin II
  • 26,865
  • 29
  • 124
  • 202
2
votes
1 answer

"grunt watch" always stops watching after fatal errors - how to make it retry after some seconds automatically?

Within some project I use Grunt for tasks like SASS compilation and so on. Basically it works like a charm, but as long as I am typing within the SASS files obviously sometimes an error occurs as I am not finished. The watch task of my Gruntfile is…
Blackbam
  • 17,496
  • 26
  • 97
  • 150
2
votes
1 answer

how debug sass in intellij file watcher. Cannot find output window

Im stuck at sass debug. I use Intellij Idea and file watcher to compile compile the scss files. The problem is i cannot debug the sass files easily because i dont see the compilation output. i write @debug 'some message' and @warn "some m." and…
Alexey Nikonov
  • 4,958
  • 5
  • 39
  • 66
2
votes
0 answers

Any way to return information about/from a Powershell File-Watcher that has been triggered?

Situation Summary Currently I have two separate Powershell(PS) Consoles, each with its own Filewatcher(FW), watching for a created file(txt file) from each Build. The code is nearly identical excluding the Notify Filter. The both currently call the…
2
votes
1 answer

Can a file watcher read the contents of a folder that dropped on watched path?

I have a windows service that watches a path on my PC . My challenge is that I had issue with service and had to stop it and fix it .Now there are new files in sub directories on the watched path that where not process because the service wasn't…
sipho
  • 101
  • 7
2
votes
1 answer

IntelliJ - File watchers: wrong output of macros

I am trying to setup a file watcher for scss files which is working on files with a filename not starting with _. But if I have a file named _file_name.scss the output of any macros that include the filename will be file.name.scss. The first _ is…
mate2
  • 175
  • 11
2
votes
1 answer

File Watcher in PhpStorm compiles too quick

How can I improve the File Watcher to compile a SCSS to CSS after I press Cmd + S (for save)? The problem is that the File Watcher compiled the files too quick so sometimes results in an error, because I'm still writing the function or CSS tags.…
2
votes
1 answer

File watcher 'Babel' is available for this file. Description: 'Transpiles ECMAScript 6 code to ECMAScript 5'

When I open my project a .js file, there comes this warning: File watcher 'Babel' is available for this file. Description: 'Transpiles ECMAScript 6 code to ECMAScript 5' there are two buttons: Add watcher and Dismiss. if I click the Add…
user7693832
  • 6,119
  • 19
  • 63
  • 114
2
votes
0 answers

C# Filewatcher on a config file

What I'm wanting to do is create a file watcher that is monitoring for any changes in my services config file. When it detects any changes, the service should restart automatically so the changes can get picked up. However, I'm struggling to get the…
N0xus
  • 2,674
  • 12
  • 65
  • 126
2
votes
2 answers

Java File watcher with multiple JVM watching single directory for incoming files

I have a situation where there are two java applications are watching a directory for incoming file. Say there is a directory DIR that is being watched by two JVM processes for any files with the extension .SGL. The problem we face here is that,…
Mayuran
  • 669
  • 2
  • 8
  • 39
2
votes
1 answer

Filewatcher to unzip, run and move files in batch-file

I want to create a filewatcher in batch-file: Watch for file in folderA (.zip) → unzip them to folderB (with same name) → and trigger a batch file → do the same for more incoming .zip files. I checked related questions to this in StackOverflow but,…
2
votes
1 answer

Simple Erlang Watcher to detect new/changes file in directory

Is there any simple WATCHER in Erlang that will notify me if there any addition/changes in a file of the folder. The frequency of changes in files of the folder will be rare. I being newbie, link & description with an answer will be helpful. Thanks…
nikdange_me
  • 2,949
  • 2
  • 16
  • 24
2
votes
1 answer

How Can I Make WebStorm SCSS File Watcher Output to Different Directory

I'm trying to use WebStorm's SCSS file watcher, but no matter what settings I change it always outputs the generated .css file to the same directory as the .scss file. I've tried changing the "arguments" from: --no-cache --update…
machineghost
  • 33,529
  • 30
  • 159
  • 234