Show More
@@ -311,10 +311,6 b' class repowatcher(object):' | |||
|
311 | 311 | dd[fn] = newstatus |
|
312 | 312 | else: |
|
313 | 313 | d.pop(fn, None) |
|
314 | elif not newstatus: | |
|
315 | # a directory is being removed, check its contents | |
|
316 | for subfile, b in oldstatus.copy().iteritems(): | |
|
317 | self._updatestatus(wfn + '/' + subfile, None) | |
|
318 | 314 | |
|
319 | 315 | |
|
320 | 316 | def check_deleted(self, key): |
@@ -483,7 +479,11 b' class repowatcher(object):' | |||
|
483 | 479 | (self.event_time(), wpath)) |
|
484 | 480 | |
|
485 | 481 | if evt.mask & inotify.IN_ISDIR: |
|
482 | tree = self.dir(self.tree, wpath).copy() | |
|
483 | for wfn, ignore in self.walk('?', tree): | |
|
484 | self.deletefile(join(wpath, wfn), '?') | |
|
486 | 485 | self.scan(wpath) |
|
486 | else: | |
|
487 | 487 | self.schedule_work(wpath, 'd') |
|
488 | 488 | |
|
489 | 489 | def process_modify(self, wpath, evt): |
General Comments 0
You need to be logged in to leave comments.
Login now