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

How to setup a different path for ignored types for prettier file watcher in IntelliJ IDEA?

I have installed Prettier plugin in my IntelliJ IDEA and configured file watcher for it. At the beginning ignored types were defined in .prettierignore file in project root directory. However due to other plugins which also are using similar files…
Rafal
  • 91
  • 2
  • 7
0
votes
1 answer

can Apache Camel File watch create event ensure file integrity

do file watch component has file integrity check in built? Will this assure that the file formation is fully done. for instance, file watch's event support to monitor the file creation at a directory and. this file could be being created/written…
Andy Chan
  • 21
  • 2
0
votes
2 answers

How to attach PDF files from a folder?

I need to attach variable PDFs from a transport folder. Sub send_attachent() Dim OutApp As Object Dim OutMAil As Object Dim strbody As String Set OutApp = CreateObject("Outlook.Application") Set OutMAil = OutApp.CreateItem(0) strbody = "
Emily
  • 11
  • 2
0
votes
2 answers

Avoid multiple FileSystemWatcher

I am currently working on a custom explorer that allows the user to define multiple root directories. To capture all changes in the system, I use a FileSystemWatcher for all specified root directories. Now, of course, it can happen that the user…
Jachuc
  • 27
  • 8
0
votes
0 answers

How To Process Files As Soon As It's Dropped Into A Folder

I currently have 2 ways of looking at a folder and checking to see if there is a new file in it. I have used watchdog and os. Below are the code snippets of what I have used. Watchdog: import sys import time import logging from watchdog.observers…
Nhyi
  • 373
  • 1
  • 12
0
votes
1 answer

Edit file in k8s Pod in run time

I have a k8s cluster (using OKD) with a deployment "X", with 1 pod "X_1", and a file "config.yaml" in a volume for this deployment that configure some aspects of the application running. This file is set in a ConfigMap as data: x.config.file: |- …
0
votes
1 answer

How to run PyCharm File Watchers synchronously?

I want to run two actions whenever I save a Python file in PyCharm: first format the file with Black and then check its code style with Flake8. I am doing this by setting up Black and Flake8 within PyCharm's File Watchers. This works, but Black and…
Josh
  • 1,357
  • 2
  • 23
  • 45
0
votes
1 answer

How to detect Folder change (renaming in particular) inside a folder using Powershell file watcher

I am using powershell to detect and record a folder change (created, renamed, deleted etc) inside a folder. This parent folder receives subfolders from another location in format TEMP_XYZ. Once this folder is copied to this parent folder, the…
Jagbir Singh
  • 39
  • 3
  • 10
0
votes
0 answers

NodeJS Chokidar / fs issues with cloud object storage volumes mapped to docker container

I am using Chokidar package in my NodeJS code and having issues with watching folders that are created in Cloud Object Storage bucket and mounted as volumes in my Runtime. Same code is working flawlessly in my local Mac and also in on-prem linux…
JavaNaresh
  • 5
  • 1
  • 1
  • 4
0
votes
1 answer

Error compiling scss using sass in intellij filewatchers

I have followed this tutorial: https://www.jetbrains.com/help/idea/transpiling-sass-less-and-scss-to-css.html#install_sass_scss and created a file watcher for my scss file. Picture of file watcher settings in intellij Using node.js version…
0
votes
1 answer

IntelliJ SASS file watcher doesn't detect changes in SCSS file

I have a style.sass file that @uses several _*.sass partials. That was all working fine. Now I added a _*.scss file (it just contains a map, so I wanted it to be multiline), but editing that file does not trigger a rebuild of the style.sass file. I…
Isvara
  • 3,403
  • 1
  • 28
  • 42
0
votes
1 answer

File Watcher Job in control to run as many times the files are placed during a time window

We have a utility which gets invoked as soon as a csv file is placed. The files for these can be manually placed by anyone in a "work" directory and the expectation is as soon as the file is placed the next job( which is common and works for all csv…
Amit
  • 101
  • 7
0
votes
1 answer

VS Code, How to force a save on another file when I save files?

I'm using the VS code extension: Live Sass Compiler with Live Server and when I save other scss files than my style.scss it doesn't compile my style.scss file. Is there a setting I missed to do this? Since I did not find any setting for this, I…
Medda86
  • 1,582
  • 1
  • 12
  • 19
0
votes
0 answers

Detect or monitor when file gets opened

Is there a way to detect when a file is open by another process? I've tried the following Search for handles in processes to get if file is open This only helps for programs that keep the file open for use. but doesn't work for even simple apps…
Abraham
  • 12,140
  • 4
  • 56
  • 92
0
votes
1 answer

Best way to monitor huge amount of files and dynamic directories in Windows 10

I am making a desktop application that monitors a directory that contains dynamic sub-directories and files. There are a lot of files(logs) being created in these sub-directories. I want to make an application that watches these files being created…
Kaustubh Kadam
  • 182
  • 3
  • 13