def __init__(self, paths):
super().__init__()
self.watches = set()
for p in paths:
p = os.path.expanduser(p)
logger.debug('watch '+p)
self.watches.add(Repo.observer.schedule(self, p))
for f in os.scandir(p):
isinstance(f, os.DirEntry)
self.on_found(f.is_dir, f.path)
评论列表
文章目录