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

Windows Defrag trigger C# filewatcher delete event

We have an internal .NET application that mirrors file directories across a network. On the client-side, we use .NET file watcher class to monitor directories. On one of our 6 client servers, we have noticed that the integrated windows defragmenter…
Newey
  • 123
  • 2
  • 8
4
votes
3 answers

Default file watchers in Goland

Is there a way to enable certain file watchers by default in all projects? It bugs me that I have to do this manually, but I've not found an option. For example, I like to enable the goimports file watcher for every project in Goland.
Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
4
votes
2 answers

typescript unable to add definition files to webstorm

i want to use baconjs with TS,but after copy baconjs def file for ts,i got that msg: bacon.ts(216,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided. to solve that,i should add a file watcher with --module cmd…
doofin
  • 508
  • 2
  • 13
4
votes
3 answers

Configure WebStorm/PhpStorm to compile .ts files to .js into "js" folder

I use WebStorm and I have a project with the following structure: webApp |--style |--includes |--ts |--js Where "webApp" is the project's root. I'd like to configure a File Watcher that compile the .ts file within the "ts" folder into .js files…
Plastic
  • 9,874
  • 6
  • 32
  • 53
3
votes
1 answer

Jetbrains Rider SCSS load-path

I've started using JetBrains Rider as my primary IDE - and I love it so far. While using Visual Studio, I used Web Compiler to compile SCSS files to CSS. Worked great. However - I'm strugling with getting Rider to compile SCSS files correct. I've…
InversionDK
  • 125
  • 7
3
votes
2 answers

How to run tests related to changed files in cypress

I'm using cypress to set E2E tests. But i'm facing some troubles, because every time I implement a new feature or refactor some code, i need to run all my tests to see if my modifications doesn't broke something in my application. In Jest we have…
3
votes
1 answer

WebStorm SCSS File Watcher error: invalid executable

After creating a new project in the JetBrains WebStorm IDE, I ran into an error with the SCSS file watcher. It says: ERROR: invalid executable, but I don't know what causes that error in the first place. The scss file is nothing special at all,…
colin
  • 761
  • 1
  • 11
  • 24
3
votes
3 answers

File watcher: "An output directory must be specified when compiling a directory"

cmd.exe /D /C call C:\Users\sebas\AppData\Roaming\npm\node-sass.cmd style.scss:style.css An output directory must be specified when compiling a directory The scss file I want the file watcher to watch is placed at the root of my project. Watch…
Sebastian Nielsen
  • 3,835
  • 5
  • 27
  • 43
3
votes
1 answer

dotNet watcher, watch only .dll file

I use the command dotnet watch run while developing dotnet core applications. However, I want the watcher only to watch if the .dll file in the bin folder has changed, and only then should it rebuild the application. In other words, I want the…
Coder Guy
  • 185
  • 5
  • 12
3
votes
4 answers

WebStorm's file watcher to compile SCSS with Dart

I found out that Sass is moving from being compiled with Ruby to Dart, as their main page suggests - https://sass-lang.com/. I followed the steps there, got myself the Dart compiler and indeed I can run the command they suggest - sass…
Maksim Dimitrov
  • 113
  • 2
  • 11
3
votes
0 answers

watch for file changes on remote server

I want to create a node.JS app to watch changes on a remote server, e.g. //10.9.8.7/files_to_watch/*. All I need is watch if some new files/folders appear. I have found an npm package named chokidar and I managed to watch local files but I don't…
waclab1807
  • 71
  • 5
3
votes
2 answers

Intellij: Sass to CSS: file watcher output folder

I have IntelliJ Ultimate Edition and I'm compiling .scss files to .css. The problem is that every .scss file is compiled to .css in the same folder. I don't want that. My folder structure is like so: assets -- css ---- main.css -- scss ----…
Ewinnn
  • 327
  • 3
  • 14
3
votes
1 answer

UglifyJS could not be run in intellij when configuring as a file watcher

I'm trying to configure UglifyJS file watcher in IntelliJ as stated in this link: minifying-javacripts But when I try to modify a javascript file and save it, I get this error: CreateProcess error=193, %1 is not a valid Win32 application I've…
Mostafa
  • 119
  • 1
  • 13
3
votes
1 answer

Intellij Idea a simple file watcher for copying a file from one directory to another

I want a file watcher for Intellij Idea which would copy my file from one directory to another after I modified it.
Alex Po
  • 1,837
  • 1
  • 24
  • 28
3
votes
1 answer

TypeScript Watch - Removing Deleted Target JS Files

Microsoft fixed an issue with Typescript still generating JS compiled output in TS 2.0 even though the source file was deleted. What the solution involved was using file watchers to trigger deletion callback event and removing the tsc watch file…
SliverNinja - MSFT
  • 31,051
  • 11
  • 110
  • 173
1
2
3
22 23