diff options
author | Sebastien Martini <seb@dbzteam.org> | 2012-08-29 22:28:08 -0700 |
---|---|---|
committer | Sebastien Martini <seb@dbzteam.org> | 2012-08-29 22:28:08 -0700 |
commit | d7ab4701970da20cc7c58ee444d9c5949f84bfe3 (patch) | |
tree | 829bcc560a3c7b2f3716d83aae6a5797fce603da | |
parent | 9a418c9c684ce7f4e8078c32fdfb2a7b90d03ca0 (diff) | |
parent | 26bec33f9d65becb208460de5867150c297b3970 (diff) | |
download | pyinotify-d7ab4701970da20cc7c58ee444d9c5949f84bfe3.tar.gz |
Merge pull request #42 from quiver/IN_EXCL_UNLINK
Add support for IN_EXCL_UNLINK flag
-rwxr-xr-x | python2/pyinotify.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py index ce0d781..cd9fc94 100755 --- a/python2/pyinotify.py +++ b/python2/pyinotify.py @@ -396,6 +396,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 @@ -434,6 +438,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 |