Skip to content

A simple Python script to organize files into folders based on the type of files simply by running the script in the directory you want to sort.

alex-chap/folder-sorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

folder-sorter

A simple Python script to organize files into folders based on the type of files simply by running the script in the directory you want to sort. ##How to run

  • Make sure you have Python installed and all set up properly.
  • Download the source from this repo either by cloning the repo or using the zip download option on the GitHub site..
  • Move file_sorter.py into the folder you want to organise and click on it, also you can just hit enter after selecting it.
  • A terminal window will open and you're then presented with some information on how many of each type of file it has found.
  • Press enter to proceed with sorting the files, or escape to cancel. The process should take a couple of seconds or less, and then it will tell you the result, and press any key to continue and close the window.
  • That's it, you've successfully organised your messy folder with hundreds of various files. If you don't want to deal with Python itself, you can find an executable for Windows in the releases, or if you feel like doing so, you can compile it yourself.

Compiling an executable

As this only needs to use Python's standard library, you can just open a terminal in the directory of folder_sorter.py and run pyinstaller --onefile folder_sorter.py and wait for it to complete, and then close the terminal and find the executable in the dist folder.

About

A simple Python script to organize files into folders based on the type of files simply by running the script in the directory you want to sort.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages