From 93274e2d31c253a0e26eda7202d991c730593594 Mon Sep 17 00:00:00 2001 From: xuzhi Date: Sun, 25 Feb 2024 01:54:44 +0000 Subject: [PATCH] fix bug of remove link v1.1 --- plugins/removelink/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/removelink/__init__.py b/plugins/removelink/__init__.py index baf8702..bb762cb 100644 --- a/plugins/removelink/__init__.py +++ b/plugins/removelink/__init__.py @@ -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)