Skip scan when folders are created

This commit is contained in:
2025-11-25 16:58:17 -07:00
parent 079deae811
commit 04bb79111b

View File

@@ -63,6 +63,7 @@ def main():
new_dir_path = new_dir_path_bytes.decode('utf-8') new_dir_path = new_dir_path_bytes.decode('utf-8')
logging.info(f"New directory {new_dir_path} detected, adding watches.") logging.info(f"New directory {new_dir_path} detected, adding watches.")
add_watch_recursive(inotify, new_dir_path, watch_flags) add_watch_recursive(inotify, new_dir_path, watch_flags)
continue
if timer: if timer:
timer.cancel() timer.cancel()