diff --git a/file_placer.py b/file_placer.py index d939b2e..06b961d 100644 --- a/file_placer.py +++ b/file_placer.py @@ -41,12 +41,6 @@ else: fileSide.append(check) - print("Here is folder/directory section below: ") - print("=======================================================================================================") - - # print(folderSide) - # print(len(fileSide)) - print(fileSide) if newFolder not in folderSide: os.mkdir(newFolder) @@ -54,7 +48,6 @@ print(f"{newFolder} folder created successful") else: print(f"{newFolder} folder already exits") - # exit() # Differentiate the file from the extension @@ -67,16 +60,12 @@ fileName = splitFileExt[0] fileExt = splitFileExt[1] - # print(splitFileExt) - # Using regular Expression to separate the file extension from the file name for ext in fileExt: regExt = re.search(r'\.(\w+)', fileExt) newfileExt.append(regExt.group(1)) - # print(newfileExt) - # Making the extension to be unique in the file for uni in newfileExt: @@ -113,7 +102,7 @@ try: for word in newSet: - # print(word) + if word in fullPath and word in getExistingDir: print(shutil.move(fullPath, getExistingDir)) except shutil.Error: @@ -125,5 +114,4 @@ urlLink3 = "https://www.youtube.com/watch?v=isRtFdu8sRs" # -# -# mvFolder = shutil.move(chgeDirectory, ) +# \ No newline at end of file