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
1
vote
1 answer

Scripting - Watch changes for a file and send an email notification

Hi All I am new to scripting. I am trying to send an email notification when ever the file is changed. I tried to use the below script just to get a notification if the file is changed but how do I do it every time the file changes. Below script…
1
vote
1 answer

WebStorm SCSS file watcher encoding error

The file watcher worked fine at first, but now I get this output everytime it runs: cmd.exe /D /C call scss.bat -E UTF-8 --no-cache --update components.scss:components.css Encoding::CompatibilityError: incompatible character encodings: GBK and…
Todd J. York
  • 135
  • 2
  • 12
1
vote
0 answers

hook a process and get files it`s created\deleted\renamed

I have created a c# program which gets new loaded process startWatch.EventArrived += new ventArrivedEventHandler(startWatch_EventArrived); and doing stuff when eventHandler fire. afterwards im using: foreach (var runningProcess in…
1
vote
4 answers

FileNotFoundException in FileSystemWatcher

I am using a FileSystemWatcher on a directory and added its event handlers, set its EnableRaisingEvents=true; and IncludeSubdirectories=false; and added NotifyFilters. While running the application if I create new folders in the specified directory…
munna
  • 229
  • 1
  • 4
  • 14
1
vote
0 answers

Error: Couldn't find preset "es2015" relative to directory — Intellij Filewatcher

trying to set up a Filewatcher with Intellij in order to use ES6 with Babel transpiler. I have followed their guide here, which seemed to install fine except for when I try to write javascript code and it executes the transpiler code, I get this…
shan
  • 3,035
  • 5
  • 34
  • 50
1
vote
0 answers

PhpStorm compile SCSS to remote host

Does anybody know how to compile scss to remote host? I have a scss file on a remote host which doesn't compile after save. I can do that locally (it works using file watcher) but the problem is with the remote host -- I don't want to download the…
Adnan
  • 517
  • 3
  • 8
1
vote
2 answers

How can you hook a script that will run after simply saving a file?

So, I wrote a fast script that you run with ". .script [name]". It's stupid simple, but I love it. Took me like an hour or so and a good dose of Stack Overflow. :P I use Codekit on an iMac at work. I set it up as a hook, not understanding the…
Steven Ventimiglia
  • 886
  • 1
  • 11
  • 19
1
vote
1 answer

Jetbrains / PhpStorm File Watcher with Jade / Pug

Install programs (I guess I did well) and my problem begins when I try to write the path for the "Program" section in the File Watcher. Which one is the right path?
1
vote
0 answers

Why some files aren't watched with a File Watcher [PhpStorm 2016.1]

I setup a File Watcher on my PhpStorm 2016.1 and I have a strange issue. Some files are watched, and some aren't. Sometime it depends on their locations, sometime on their types. I just can't put a finger on which pattern some files aren't…
1
vote
1 answer

Handling file watchers in Vagrant shared folder

I'm using Vagrant shared folder to develop a project using babel as a file watcher. However, most likely, because of time difference between host and guest machine whenever I change a file the watcher doesn't see the changes and doesn't recompile…
Krzysztof Wende
  • 3,208
  • 25
  • 38
1
vote
0 answers

Can FileWatchDog watch a file in AWS S3 Bucket

I am new to AWS and so i was wondering if a FileWatchDog instance can read changes on AWS S3 bucket file directly or do i need to make a local copy of that file, and if i have to make a local copy of the file then how do i check for changes in S3…
Ankita Bhowmik
  • 463
  • 1
  • 5
  • 20
1
vote
1 answer

File Watchers: trigger ONLY when the "Current file" is under a certain directory?

Is there a way to restrict File Watcher to only trigger when the current file is under a certain directory? Right now I can restrict the scope to Current file OR a matching Pattern like file[project]:somefolder//* The matching pattern scope looks…
supersan
  • 5,671
  • 3
  • 45
  • 64
1
vote
2 answers

How to watch only main sass file on phpstorm?

I have a css structure where I have a folder with vendors, other with modules, other with framework, and on the root sass I have my main file which imports all the other sass files form the other folders. How can I set the file watcher on PHPStorm…
Monica
  • 1,524
  • 4
  • 27
  • 44
1
vote
2 answers

How do you set up file watcher in Webstorm to restart Node.js?

What I am trying to achieve is to trigger same behavior as Menu option Run > Run 'server.js'
Alexander Ivanov
  • 1,268
  • 1
  • 9
  • 20
1
vote
1 answer

SCSS compiler not working properly in PyCharm

I am trying to set up a SCSS transpiler in PyCharm for Django project. Basically, what I need is to convert /static/scss/main.scss to /static/css/main.css Here are the configurations of SCSS File Watcher: Program:…
Jahongir Rahmonov
  • 13,083
  • 10
  • 47
  • 91