diff --git a/Classify Files.py b/Classify Files.py new file mode 100644 index 0000000000..75d91df863 --- /dev/null +++ b/Classify Files.py @@ -0,0 +1,10 @@ +import os +import shutil +# os.makedirs('excelfiles') +root = os.getcwd() +files = os.listdir() +for file in files: + if file.endswith('.xlsx'): + if os.path.exists(f'excelfiles/{file}'): + os.remove(f'excelfiles/{file}') + shutil.move(file,'excelfiles/') \ No newline at end of file