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

Get csproj path macros in file watcher in Rider

Is there a way to get a path to .csproj file in file watcher? I want to create a watcher that will launch third-party app with this argument. There is plenty of different macros (like solutionPath etc) but I didn't find what I need.
Crabar
  • 1,829
  • 1
  • 14
  • 26
0
votes
0 answers

Read file content on file when file is changed

I have some archive file with data, I have some thread that writes to this archive file, at the main thread I have file system watcher that reads the file content when there is some change: static FileSystemWatcher watcher = new…
Codey
  • 487
  • 1
  • 8
  • 27
0
votes
0 answers

Sass Compiler creates wrong code with spaces

I´m using PhpStorm 2018.3 with Sass File Watcher. But the File Watcher converts my code very wrong.... Example: file.scss JSfiddle file.css File Watcher Sass Version 1.17.2 compiled with dart2js 2.1.1 What´s wrong? :(
Vueer
  • 1,432
  • 3
  • 21
  • 57
0
votes
0 answers

Processing one file at a Time in talend

I have a problem with talend. Currently im using the open source software, and I have a file watcher. I need a way in which even if I enter 2 files at the same second, I want talend to process one at a time, once the first has gone through all the…
0
votes
1 answer

Running filewatcher as separate process

I am still very new to Ruby so I hope you can help. I have a Ruby on Rails app that needs to watch a specific directory "Dir A" to which I keep adding txt files. Once a new file appears it needs to be processed into csv file, which then appears in a…
0
votes
1 answer

I need to run 2 twaitforfile in the same subjob talend

I need to run 2 file watchers in the same subjob using talend. Right now If I link them together I get only one file watching running when I run talend. Below is what I have. Is there a way to execute them together. The reason for this is because…
0
votes
0 answers

Extract email address from a file before mapping in Talend

I have a folder with 5 files. One of the files has an email address. I want to extract the email address from the file first, map it to a database, and then store it somewhere as a variable so that it can be used for sending email component using…
0
votes
1 answer

Event called 2 times when file updated, needs to call only ONE time

I have below code written in C# console app, basically it's watching a folder Temp where it will watch for test.txt file updates. class Program { private static FileSystemWatcher watcher; static void Main(string[] args) { watcher…
user584018
  • 10,186
  • 15
  • 74
  • 160
0
votes
1 answer

Regular expression in file path

I need to enter regular expression in a file path name inside tfileinputdelimited I have a file watcher that is looking inside a directory for new files to be added. I want the new files have similar word for example file 1 is called apple1.csv and…
0
votes
0 answers

File Watcher using windows power shell

I am trying to build a FileWatcher program in Windows PowerShell. I have 4 locations which I need to monitor. In those 4 locations I already have hundreds of files. I have a specific format for the file which I receive; e.g. the file name begins…
user10675448
  • 23
  • 1
  • 5
0
votes
0 answers

FileWatcher sends multiple emails with Net.Mail.MailMessage

I'm using a FileWatcher script and everything seems to be working as far as monitoring. The problem is that when a file changes, it's set to send me an email. It emails out fine but always sends 2 emails or if i'm sending to a text, 2 texts. What's…
Damien
  • 4,093
  • 9
  • 39
  • 52
0
votes
1 answer

c# Filewatcher Microsoft Word

I have created an app that will open a File from a server in Word. I am truying to use filewatcher to determine when to post changed word document back to server. But Microsoft changes the filenames and I have no way to know which temp file name…
Bartvandee
  • 289
  • 3
  • 19
0
votes
0 answers

Windows Service and System File Watcher

I have to use a system file Watcher into a Windows service. I write a wrap class and I put it into the service class as shown below : public partial class CaptureRecordingsService : ServiceBase { FileSystemWatcherWrapper myFSWrapper; …
Simone Spagna
  • 626
  • 7
  • 27
0
votes
1 answer

Grab the name of a modified file python

Within a script is a watcher algorithm which I've adapted from here: https://www.michaelcho.me/article/using-pythons-watchdog-to-monitor-changes-to-a-directory My aim is now to add a few lines to grab the name of any file that's modified so I can…
Colleen
  • 143
  • 1
  • 3
  • 14
0
votes
0 answers

Git temporarily adding files to "commit" when switching branches - working with chokidar/node.js

I'm creating a Node.js file watcher (with Chokidar, but it can work with Gulp as well). Every time I save my file, it does something with it, like passing JSHint. But when I change branches, my watcher goes crazy and apply my functions to ALL files…
Paula Fleck
  • 835
  • 11
  • 21