From 1aed5010756a9188522a1df52e64853823f6d996 Mon Sep 17 00:00:00 2001 From: ImAlpha Date: Wed, 13 Sep 2023 02:50:10 -0700 Subject: [PATCH] added time import --- Python_Scripts/DownloadSorter/DownloadSorter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python_Scripts/DownloadSorter/DownloadSorter.py b/Python_Scripts/DownloadSorter/DownloadSorter.py index 6e6550c..8fb31a0 100644 --- a/Python_Scripts/DownloadSorter/DownloadSorter.py +++ b/Python_Scripts/DownloadSorter/DownloadSorter.py @@ -1,5 +1,6 @@ import os import shutil +import time EXCLUDE_FILE = 'DownloadSorter.py' @@ -25,7 +26,7 @@ def main(): # Set up the number of files originally for automation number_of_files = len(os.listdir(cwd)) time.sleep(20) - old_number = number_of_files + old_number = number_of_files # Possibly redundant number_of_files = len(os.listdir(cwd)) # If new files detected, organize them