Comments (5)
@berwin22 I too add a second watch self.watch_manager.add_watch(event.pathname, EVENT_MASK, rec=True, auto_add=True)
but usually stop at that. @seb-m Are watches not garbage collected somehow? What happens after a watched directory is deleted?
from pyinotify.
Hi guys,
@wayoutmind are you thinking of this in the context of a moved directory? it's usually probably easier for a move than for a copy. Anyway I've never thought of this use case (using inotify as signal for copy completion), and I'm not sure inotify would be the right way of handling it. In first thought maybe inotify could be part of it but at least it seems to me it does not alleviate from the task of checking files integrity when it is assumed the copy ended. Maybe inotify could be used as a hint of when to check that files are rightly copied and then check that it's the case.
from pyinotify.
Sorry @seb-m, yes I was thinking about this in the context of a moved directory.
from pyinotify.
I have the same issue. Currently just adding a second watch as @wayoutmind described.
from pyinotify.
Won't implement this feature.
from pyinotify.
Related Issues (20)
- x
- Handle byte sequences as paths too
- Difference between del_watch and rm_watch unclear from doc
- import error with python-3.8.1 involving pyinotify.cpython-38.pyc
- Pls add support for macos and other unix systems HOT 1
- Does nothing when passing a pathlib.PosixPath object to add_watch HOT 1
- pyinotify event queue overflowed HOT 2
- Provide statistics on how many events were in the queue HOT 2
- quiet=False not works HOT 1
- class Watchmanager should call close() on deletion
- many wiki-links are obsolete
- Pyinotify creates Zombie (defunct) processes HOT 1
- how is this different from other inotify packages available for python ? HOT 1
- MacOS support HOT 1
- question on how to use without chaging code too much
- UnicodeEncodeError: 'utf-8' codec can't encode character '\udc84' in position 81: surrogates not allowed HOT 1
- Should this project be declared officially abandoned?
- Python 3.12 removed asyncore module HOT 1
- Etherscan HOT 1
- import select will conflict with other modules
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 pyinotify.