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

Typing.py errors when applying pyright

Good day, sirs. The following error occurs when applying pyright. /opt/homebrew/bin/pyright /Users/pli/Desktop/develop/app/application/router/test.py /Users/pli/Desktop/develop/app/application/router/test.py …
pli
  • 1
  • 1
0
votes
0 answers

dotNet watcher with -- project parameter and running an application stopped working in .NET 8

In .NET 6, it is possible to use the dotnet cli this way: dotnet watch --project DotNetWatch.msbuild MyWebApplication.dll where DotNetWatch.msbuild contains an ItemGroup with the Watch files, for example:
0
votes
0 answers

ffmpeg: a way to write to a temp file and rename when finished writing?

i am using ffmpeg to split a video into frames and wondering if there any flags i can set so that ffmpeg will start writing the frame to a file and only rename it when its finished writing to it. for context this is the current ffmpeg command im…
0
votes
0 answers

Python File-Watcher & Extract data from JSON to XLSX in a loop

Hey guys can anyone help me debug this code please? I am stuck... My Goal: To create a a loop that constantly checks a folder, to see if new .json files have been added every 60 second, then get some data from the newly added .json files, and export…
Eric Do
  • 5
  • 3
0
votes
0 answers

Custom QLabel returns null when refreshing images? (Or: how to handle file changes for images?)

I have a bunch of layouts and I'm trying to display two differently sized square images next to each other. My ImageLabel class should watch for file changes (when the image at the specific path is overwritten) and update/refresh the image(s)…
avroom
  • 23
  • 7
0
votes
0 answers

PhpStorm: file watcher / Less: trigger execution for extra directory in the project

I configured compiling .less for my current project with works fine. I've added an extra folder to the project which also contains .less files and I also want PhpStorm to trigger the Less compiler when changing something inside there. Unfortunately…
Fuxi
  • 7,611
  • 25
  • 93
  • 139
0
votes
0 answers

Filewatcher with move-item action stops working after a while and why doesnt it work in task scheduler?

# Define variables $LogFilePath = "C:\Logs\FileTransferLog.txt" # Define the array of users $Users = @("TEST") foreach ($User in $Users) { $SourceShare1 = "\\TEST\TEST\$User\" $DestinationShare1 = "\\TEST1\TEST\$User\" $WatcherServer1…
S3C
  • 1
  • 1
0
votes
1 answer

My script wont move existing files and why does it log it x5?

Below is my file moving script. My problems: Super slow in moving files It doesnt move existing files and Once it moves it also logs it x5, like its moved the same file x5 Filewatcher kinda not working as it doesnt recognize new files, have to…
S3C
  • 1
  • 1
0
votes
1 answer

How to add Autoprefix css to File Watcher in PhpStorm or etc?

I want to use Autoprefixer https://www.npmjs.com/package/autoprefixer as a File Watcher. How to add it? I don't use npm package, only file watcher css compile in PhpStorm.
0
votes
0 answers

Read growing file in real time

var wh = new AutoResetEvent(false); var fsw = new FileSystemWatcher("."); fsw.Filter = filepath; fsw.EnableRaisingEvents = true; fsw.Changed += (s, e) => wh.Set(); var fs = new FileStream(filepath, FileMode.Open, FileAccess.Read,…
ShiHang Ng
  • 67
  • 11
0
votes
0 answers

File watcher Tailwind PhpStorm not working

I'm having a problem file watching Tailwind with a file watcher but also with the following command: npx tailwindcss style.css AMP-IT.nl/output.css --watch It doesn't notice any changes to index.php it does watch style.css. I did include index.php…
0
votes
0 answers

File notify watcher not getting triggered when inside Tauri setup

I'm trying to add a notify to a basic Tauri app. The notify watcher seems to work outside the Tauri setup (watcher1) but not inside the Tauri setup (watcher2). use notify::{RecursiveMode, Result, Watcher}; use std::path::Path; fn main() ->…
0
votes
0 answers

How to automate Gradle task running

The project I am working on is Java, Gradle based. So I want to create a plugin/script that will run a certain Gradle task whenever I made changes to one of the files from the project. For example There is A.xml file and a B Gradle task. Whenever I…
Vahe Karamyan
  • 33
  • 1
  • 10
0
votes
3 answers

A solution to restart angular project cli automatically with any modification to proxy.conf.json?

I'm asking for some help, we have prox.conf.json which contains our different envs, and in many cases, you need to change the target server and need to restart our angular projectAny tricks on how to prevent restarting and when we change the proxy…
Rebai Ahmed
  • 1,509
  • 1
  • 14
  • 21
0
votes
0 answers

Does the gradle file system watcher work for subprojects?

I recently splitted our micornaut project in seperate module, but since then the continous build doe s not work anymore for the subprojects. But changes in the root project will still be detected. The build.grade of the root project looks like…
Zonko
  • 119
  • 7