Update file-organizer.py

This commit is contained in:
Vardhan Hegde 2024-10-17 17:30:01 +05:30 committed by GitHub
parent d783b269ea
commit 4a546c73b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,8 +81,8 @@ def organizer(directory):
destination = directory + folder
else:
if os.path.isdir("Other") == False:
os.mkdir(destination + "Other") #if 'Other' folder doesn't exist create it.
if os.path.isdir(directory +"Other") == False:
os.mkdir(directory + "Other") #if 'Other' folder doesn't exist create it.
print(src, " ----------moved to--------> ", destination, ",") #bash : message
try:
shutil.move(src, destination)