fix bug of remove link v1.1

This commit is contained in:
xuzhi
2024-02-25 01:54:44 +00:00
parent f05eec39f0
commit 93274e2d31

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)