Comments (2)
Definitely seeing the same issue for the same use-case (as @fatuhoku described above) and it's definitely undesirable. Any thoughts on whether this will be addressed in the upcoming bug fixes, @alandipert? Thanks again for the nice work. This has been very helpful in my workflow.
UPDATE: After some thinking, I believe that when my (Python) unittests are executed, new *.pyc
files are also compiled, thus producing another "change" event for the directory-this results in action being invoked twice. A little more digging around, I think eventPaths
are actually only directories and not files. This will be difficult to filter for files (in my case, it would be nice to filter out *.pyc
in the directory). At the moment, I'm thinking that perhaps this hack will be able to fix my issue: write timestamp to temporary file, rescan for any __.py
* file changed after that time-if exist continue with callback if not bail. Will update with results once done.
from fswatch.
You can try the upcoming fswatch
v. 1.0.0 release: you should not receive a change event for the containing directory when a contained file is changed.
Let us know your feedback.
Cheers,
-- Enrico M. Crisostomo
from fswatch.
Related Issues (20)
- Universal (Arm + x86) library build for MacOS on M1 HOT 1
- Ask for help HOT 1
- import error in silicon mac
- Additional waiting period after --one-event
- Make fails on Solaris 11.4 cbe with gcc-10 or gcc-11
- Trailing slash for directories HOT 1
- CMake package config file is not installed
- fswatch fails to build on windows 11 using cygwin
- Installation for windows missing
- libfswatch README copyright looks stale
- Help configuring fswatch to act only on full file being written by SFTP clients HOT 1
- fswatch command fires multiple events for a single move operation HOT 4
- Which event type should I look for if I am watching a Google Drive directory for new files?
- NetBSD support
- Is there any way to get previous filename for Rename event?
- Symlink question: Is fswatch suppose to notify of linked file changes HOT 1
- execute cmd for single filetype
- fswatch is horribly slow on setting up inotify
- How to notify for write operations only? (using -m inotify_monitor on linux)
- Is this still being maintained? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fswatch.