From c02fbc4985a03f86f182000c3894eb0efb131378 Mon Sep 17 00:00:00 2001 From: thsrite Date: Sat, 20 Jul 2024 20:16:11 +0800 Subject: [PATCH] Update __init__.py --- plugins/cloudassistant/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/cloudassistant/__init__.py b/plugins/cloudassistant/__init__.py index 3f9937b..157e973 100644 --- a/plugins/cloudassistant/__init__.py +++ b/plugins/cloudassistant/__init__.py @@ -356,13 +356,13 @@ class CloudAssistant(_PluginBase): else: other_files.append(file_path) + # Then, handle other files + for other_file in other_files: + self.__handle_file(event_path=str(other_file), mon_path=mon_path) # First, handle video files for video_file in video_files: self.__handle_file(event_path=str(video_file), mon_path=mon_path) - # Then, handle other files - for other_file in other_files: - self.__handle_file(event_path=str(other_file), mon_path=mon_path) logger.info("云盘助手全量同步监控目录完成!") def event_handler(self, event, mon_path: str, text: str, event_path: str):