summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <seb@dbzteam.org>2012-08-30 07:36:39 +0200
committerSebastien Martini <seb@dbzteam.org>2012-08-30 07:36:39 +0200
commit66c395418d52e1506678e077dfa51a062c7f3735 (patch)
treeb0b935d2a802a37b3a77ea4f499f29da4e0ddea2
parentd7ab4701970da20cc7c58ee444d9c5949f84bfe3 (diff)
downloadpyinotify-66c395418d52e1506678e077dfa51a062c7f3735.tar.gz
Add support for IN_EXCL_UNLINK flag (Python 3 branch).
-rwxr-xr-xpython3/pyinotify.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python3/pyinotify.py b/python3/pyinotify.py
index bb33c19..a826efb 100755
--- a/python3/pyinotify.py
+++ b/python3/pyinotify.py
@@ -391,6 +391,10 @@ class EventsCodes:
IN_ONLYDIR we can make sure that we don't watch
the target of symlinks.
@type IN_DONT_FOLLOW: int
+ @cvar IN_EXCL_UNLINK: Events are not generated for children after they
+ have been unlinked from the watched directory.
+ (new in kernel 2.6.36).
+ @type IN_EXCL_UNLINK: int
@cvar IN_MASK_ADD: add to the mask of an already existing watch (new
in kernel 2.6.14).
@type IN_MASK_ADD: int
@@ -429,6 +433,7 @@ class EventsCodes:
'IN_ONLYDIR' : 0x01000000, # only watch the path if it is a
# directory
'IN_DONT_FOLLOW' : 0x02000000, # don't follow a symlink
+ 'IN_EXCL_UNLINK' : 0x04000000, # exclude events on unlinked objects
'IN_MASK_ADD' : 0x20000000, # add to the mask of an already
# existing watch
'IN_ISDIR' : 0x40000000, # event occurred against dir