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

Create a child window from a FileSystemWatcher

I have a FileSystemWatcher watching for newly created files. When it sees one, I would like it to open a child window. Using this: private void FileSystemWatcher_Created(object sender, FileSystemEventArgs e) { TableWindow win = new…
Bruce Thompson
  • 141
  • 1
  • 6
0
votes
1 answer

How do i determine which files are created or manipulated by a specific process programatically in c# windows OS

Im coding an utility, which has to keep track of an installation. What directories and files does this installation create on my computer. The language is c# .net, the OS is windows. So far iv'e used FileWatcher, which is a step on the way, but…
0
votes
1 answer

Filewatcher to detect only files that are fully uploaded and are ready to copy

I would like to use Powershell filewatcher to monitor an azure file share to lock a file that is currently uploading until it has completed uploading. I have another function that copies the uploaded files to other file shares and I don't want the…
0
votes
2 answers

Can Apache Camel File watch component work on remote file location?

I need to watch remote file location on file creation. when there is file created, copy this file from remote file location to cloud location and make some restful calls, then copy processed file back when it's ready from cloud to remote file…
0
votes
2 answers

Is there a way to know if a file has been uploaded to a network drive in Azure

I have a network location where every hour a csv file gets dumped. I need to copy that file to an azure blob. How do I know that a file has been uploaded to that network drive. Is there something like a file watcher in azure which monitors this…
0
votes
0 answers

C# File System Watcher windows service has a memory leak that occurs, unable to track down what is causing the memory leak

Over the past few days I've been monitoring a windows service that I've created, as I was sure it has a memory leak. As it turns out, I'm correct - it's memory usage has increased from 41MB to 75MB over the last few days. All this service does, is…
Jake H
  • 155
  • 2
  • 13
0
votes
0 answers

Implementing a nugget

I don't understand how to use the code for this nugget: Myoddweb.Directorywatcher. After the nugget install I tried it like the example said: // at the top: using myoddweb.directorywatcher; private void Form1_Load(object sender, EventArgs e) …
spunit
  • 523
  • 2
  • 6
  • 23
0
votes
1 answer

Watching folder with incron seems to kill my server

I would like to run a php script on a folder whenever content in that folder changes (a file is edited, or overwritten, or added or deleted). The php script gets a hash code for each file in the folder, and writes all the lines in a hash.txt file…
msoutopico
  • 357
  • 3
  • 15
0
votes
0 answers

Error while watching folder and file for change

I am tailing a file for change and using fs.watch on a directory for newly added files and I received the following error causing my app to crash after a couple of hours working? Any ideas what this means or why it would occur? events.js:288 …
Jack.c
  • 1,035
  • 1
  • 11
  • 14
0
votes
1 answer

Filewatcher and Queue management

i filewatching a dir for deletion, addition and change. I started with addition. The processing time forces me to have a queue management otherwise i'll skip a lot of files added in the dir. Here is the code : Declaration : static…
0
votes
1 answer

Spring IntegrationFlow for multi-tenancy application or multiple folders to watch

Is there a way to register IntegrationFlow for multi-tenancy. Assuming requirement is to process PF for few tenants such as INFY, TCS, WIPRO etc. Every tenant has it’s own directory path with the same pattern like /mount/batches/{tenantId}/pf.…
0
votes
1 answer

How to use File watcher for Google File store in google cloud using .Net Core

How can we implement the .net core file watcher program to watch the GCP directory(filestore). means the program can able to track the changes for particular directory.
0
votes
1 answer

SCSS file-watcher encoding issue

I have been using a SASS/SCSS file-watcher in my ide for quite a while now and for the past few days I have been having issues with the encoding. At the moment I work with another developer on a software and we're using a git system to handle the…
Dennis
  • 595
  • 1
  • 6
  • 22
0
votes
0 answers

Why does multi threading mess up my file watcher?

I am trying to make a file watcher that watches multiple directories simultaneously and i found a function that watches one directory and it works well. So I tried to create multiple threads with the same function and just give them the different…
0
votes
1 answer

PhpStorm: Less Filewatcher: define output folder

I'm using the Filewatcher for Less inside PhpStorm which works nicely using this argument: --clean-css="--s1 --advanced --compatibility=ie8" --no-color $FileName$ `c:/xampp/htdocs/myproject/css/$FileNameWithoutExtension$.css` It will compile all…
Fuxi
  • 7,611
  • 25
  • 93
  • 139