mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
Turns out we don't care about IN_CREATE either
This commit is contained in:
parent
c57a70dbec
commit
2cfa88265b
@ -141,17 +141,6 @@ class INotifyTests(unittest.TestCase):
|
||||
test_movedTo.skip = True
|
||||
|
||||
|
||||
def test_create(self):
|
||||
"""
|
||||
Creating a file in a monitored directory sends an
|
||||
C{inotify.IN_CREATE} event to the callback.
|
||||
"""
|
||||
def operation(path):
|
||||
path.open("w").close()
|
||||
|
||||
return self._notificationTest(inotify.IN_CREATE, operation)
|
||||
test_create.skip = True
|
||||
|
||||
def test_delete(self):
|
||||
"""
|
||||
Deleting a file in a monitored directory sends an
|
||||
|
@ -74,6 +74,7 @@ class INotifyEventHandler(FileSystemEventHandler):
|
||||
event_mask = event_mask | IN_CLOSE_WRITE
|
||||
event_mask = event_mask | IN_MODIFY
|
||||
if isinstance(event, (DirCreatedEvent, FileCreatedEvent)):
|
||||
# For our purposes, IN_CREATE is irrelevant.
|
||||
event_mask = event_mask | IN_CLOSE_WRITE
|
||||
if isinstance(event, (DirDeletedEvent, FileDeletedEvent)):
|
||||
event_mask = event_mask | IN_DELETE
|
||||
|
Loading…
Reference in New Issue
Block a user