Merge pull request #70 from DzAvril/main

This commit is contained in:
jxxghp
2024-02-25 10:01:53 +08:00
committed by GitHub

View File

@@ -33,7 +33,7 @@ class FileMonitorHandler(FileSystemEventHandler):
return
new_file = Path(event.src_path)
try:
self.sync._state_set.add((event.src_path, new_file.stat().st_ino))
self.sync._state_set.add((Path(event.src_path), new_file.stat().st_ino))
except Exception as e:
logger.error("文件丢失:%s" % event.src_path)