mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2025-02-07 09:00:54 +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
|
destination = directory + folder
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if os.path.isdir("Other") == False:
|
if os.path.isdir(directory +"Other") == False:
|
||||||
os.mkdir(destination + "Other") #if 'Other' folder doesn't exist create it.
|
os.mkdir(directory + "Other") #if 'Other' folder doesn't exist create it.
|
||||||
print(src, " ----------moved to--------> ", destination, ",") #bash : message
|
print(src, " ----------moved to--------> ", destination, ",") #bash : message
|
||||||
try:
|
try:
|
||||||
shutil.move(src, destination)
|
shutil.move(src, destination)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user