diff --git a/code/utils/files.py b/code/utils/files.py index 00e520c..6fb5fdc 100644 --- a/code/utils/files.py +++ b/code/utils/files.py @@ -84,6 +84,8 @@ def file_autoremove(path, share, notifier = None): share['path'], path ) + if not os.path.exists(full_path): + return False age, age_str = file_age(full_path) if age.days >= autoremove: os.remove(full_path)