equal
deleted
inserted
replaced
280 |
280 |
281 If the optional addfilter parameter is not None, it must be a |
281 If the optional addfilter parameter is not None, it must be a |
282 callable that takes one parameter. It will be called each time |
282 callable that takes one parameter. It will be called each time |
283 a directory is about to be automatically watched. If it returns |
283 a directory is about to be automatically watched. If it returns |
284 True, the directory will be watched if it still exists, |
284 True, the directory will be watched if it still exists, |
285 otherwise, it will beb skipped.''' |
285 otherwise, it will be skipped.''' |
286 |
286 |
287 super(autowatcher, self).__init__() |
287 super(autowatcher, self).__init__() |
288 self.addfilter = addfilter |
288 self.addfilter = addfilter |
289 |
289 |
290 _dir_create_mask = inotify.IN_ISDIR | inotify.IN_CREATE |
290 _dir_create_mask = inotify.IN_ISDIR | inotify.IN_CREATE |