|
|
@ -46,7 +46,7 @@ def organize_files(drive):
|
|
|
|
elif operating_system == 'Windows': # Windows
|
|
|
|
elif operating_system == 'Windows': # Windows
|
|
|
|
drive = drive + '\\'
|
|
|
|
drive = drive + '\\'
|
|
|
|
if not os.path.exists(drive):
|
|
|
|
if not os.path.exists(drive):
|
|
|
|
print("ERROR! Invalid location")
|
|
|
|
print(f"ERROR! {drive} is not a valid location")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
files = os.listdir(drive)
|
|
|
|
files = os.listdir(drive)
|
|
|
|
extns = {os.path.splitext(file)[1].strip('.') for file in files}
|
|
|
|
extns = {os.path.splitext(file)[1].strip('.') for file in files}
|
|
|
|