diff --git a/File-Organizer/file-organizer.py b/File-Organizer/file-organizer.py index 7bfc9fa..ffc3fd6 100644 --- a/File-Organizer/file-organizer.py +++ b/File-Organizer/file-organizer.py @@ -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)