added time import
This commit is contained in:
parent
27365c64db
commit
1aed501075
@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import time
|
||||||
|
|
||||||
EXCLUDE_FILE = 'DownloadSorter.py'
|
EXCLUDE_FILE = 'DownloadSorter.py'
|
||||||
|
|
||||||
@ -25,7 +26,7 @@ def main():
|
|||||||
# Set up the number of files originally for automation
|
# Set up the number of files originally for automation
|
||||||
number_of_files = len(os.listdir(cwd))
|
number_of_files = len(os.listdir(cwd))
|
||||||
time.sleep(20)
|
time.sleep(20)
|
||||||
old_number = number_of_files
|
old_number = number_of_files # Possibly redundant
|
||||||
number_of_files = len(os.listdir(cwd))
|
number_of_files = len(os.listdir(cwd))
|
||||||
|
|
||||||
# If new files detected, organize them
|
# If new files detected, organize them
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user