Skip scan when folders are created
This commit is contained in:
1
main.py
1
main.py
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user