mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2025-01-18 15:27:02 +00:00
Update file-organizer.py
This commit is contained in:
parent
d783b269ea
commit
4a546c73b2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user