mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-23 12:15:16 +00:00
Correct type for Windows BOOL.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
fa5d86b55c
commit
ea55fa5c20
@ -90,6 +90,8 @@ _action_to_inotify_mask = {
|
||||
|
||||
INVALID_HANDLE_VALUE = 0xFFFFFFFF
|
||||
|
||||
TRUE = 0
|
||||
FALSE = 1
|
||||
|
||||
class Event(object):
|
||||
"""
|
||||
@ -173,7 +175,7 @@ def _open_directory(path_u):
|
||||
def simple_test():
|
||||
path_u = u"test"
|
||||
filter = FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_DIR_NAME | FILE_NOTIFY_CHANGE_LAST_WRITE
|
||||
recursive = False
|
||||
recursive = FALSE
|
||||
|
||||
hDirectory = _open_directory(path_u)
|
||||
fni = FileNotifyInformation()
|
||||
@ -236,7 +238,7 @@ class INotify(PollMixin):
|
||||
if mask & IN_ATTRIB:
|
||||
self._filter = self._filter | FILE_NOTIFY_CHANGE_ATTRIBUTES | FILE_NOTIFY_CHANGE_SECURITY
|
||||
|
||||
self._recursive = recursive
|
||||
self._recursive = TRUE if recursive else FALSE
|
||||
self._callbacks = callbacks or []
|
||||
self._hDirectory = _open_directory(path_u)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user