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

Achieve IntelliJ Idea to build and re-run a Spark Java project on file edit/update

I'd like to automate a process. I'm using Spark Java framework and after build and run the first time, I'd like IntelliJ Idea to watch file changes, stop, build and run the Spark Java application with the latest edits. I know that there is the…
Luca Anceschi
  • 2,257
  • 3
  • 19
  • 24
0
votes
1 answer

How to ignore the parent "src" directory when transpiling using Babel watcher

My code has the directory structure: project-root/ └── src/ └── main.js When I run the default Babel file watcher, the code is transpiled into a dist folder, including the src directory in it's path, like so: project-root/ └── src/ ├──…
jonny
  • 3,022
  • 1
  • 17
  • 30
0
votes
1 answer

Why is FileSystemWatcher never triggered on changes in open BDE/Paradox database file?

I have an old native application written in Borland Delphi: The application interfaces with the special hardware and creates/stores its data in a BDE/Borland Paradox Database in a .db file. I am not the author of this application and the company…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
0
votes
2 answers

How can I watch any particular file / directory based upon any file(located under specific directory if directory base watching) attempt for OPEN?

I want to execute few task based open targeted file's OPEN event. For example, I am watching Sample.docx & whenever user will go for OPEN it, few subsequent task will be performed based upon it's OPEN action. I have searched on internet & find out…
Vishal Gajera
  • 4,137
  • 5
  • 28
  • 55
0
votes
1 answer

watch a file while performing other actions

I am implementing a winform application that is supposed to do the following: OnLoad, open an XML file reading required information while watching for any new changes to the file (incoming new information) A timer performing certain actions based…
amindomeniko
  • 417
  • 6
  • 23
0
votes
1 answer

Angular 6 watcher does not compile imported less files in main.less

Am working on Angular version 6. And I am using Less for styling. In Angular previous Versions, I had to include less main file in angular_cli.json file and that worked perfectly for me. In latest Angular 6 version we have a file called…
Rohit Dubey
  • 174
  • 1
  • 2
  • 12
0
votes
1 answer

Single File monitoring and read the updated file content in java

I have single CSV file in shared drive and the data is updated everyday. I have a task scheduler which will monitor the particular Directory, and the scheduler is run everyday and read the updated content. If two rows are updated in that file, then…
0
votes
1 answer

Autosys trigger same DataStage job multiple times with different inovacation IDs

Here is what I am trying to do, not sure if it is possible: Autosys gets File1:10pm starts DataStage Job 1.1:10pm Job1.1:10pm is still running Autosys gets File1:20pm, it needs to start the same Job1 but run it as Job1.1:20pm, even though…
0
votes
0 answers

how to handle NoSuchFileException in FileWatcher in java

I am watching a directory for changes and one of the folders inside it are throwing NoSuchFileException i want to skip that folder and resume working ,how can i handle this exception ,also the folder exists at E:\ifkaar\sql set up physically here…
swaheed
  • 3,671
  • 10
  • 42
  • 103
0
votes
1 answer

how to watch multiple hard disk partitions in FileWacther in java

I am using FileWatcher to watch a whole hard disk partition in my case its D drive eg: D:/ the code is working fine with one path i provided, all i want is to watch other hard disk partitions as well like C:,D: and E: how can i achieve that here is…
swaheed
  • 3,671
  • 10
  • 42
  • 103
0
votes
0 answers

FileSystemWatcher resetting EnableRaisingEvents after invocation

I need to process a number of directories and process files as they are created or renamed. To do this I created the following Watcher Class. public class Watcher { FileSystemWatcher fileSystemWatcher = null; public delegate void…
Paul S Chapman
  • 832
  • 10
  • 37
0
votes
1 answer

Notifying generation of files in a defined folder

I have requirement that one process will trigger generation of multiple files (i.e. N number of file), There will be an application that will notify an external process the success (1) or failure (0) of the file generation process. If N number of…
Nilanjan Saha
  • 451
  • 4
  • 6
0
votes
1 answer

When watching a network drive "Created" is not fired when the file comes from another drive

I have a FileWatcher that works fine on local and network drives. On certain network drives there is a problem when the file comes from another network drive. Then the "Created" event is not fired. The UNC paths and read/write permissions are…
Dipke
  • 17
  • 4
0
votes
1 answer

C# FileWatcher filter

I have a method in my service where I'm watching the services config file. It looks like this: private void WatchConfigurationFile() { var fileLocation = Assembly.GetExecutingAssembly().Location; watcher.Path =…
N0xus
  • 2,674
  • 12
  • 65
  • 126
0
votes
1 answer

Compile partial SCSS-Files with Sass-Globbing in Jetbrains IDE

I just installed the sass-globbing-plugin to import partials recursively from a folder automatically. Currently I am using the newest version of jetbrains pycharm. To activate sass-globbing to the existing scss-filewatcher, I edited the arguments…