Skip to content

A python script that helps organization your folder based the type of files. Very useful if you want to organize your Download folder or Desktop with random files

Notifications You must be signed in to change notification settings

nateng98/Files-Organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Files Organizer

A python script that helps organization your folder, putting your files into different (sub)folders based their extensions.

Choose a folder you want to be organized

Set up the path of the folder

mainPath = r"c:/Users/user_name/destination_1/..."

For example: I want to organize my Desktop

mainPath = r"c:/Users/Nathan/Desktop"

Set up folders and type of files that will be arranged

Depends on how you want to organized your files/folders, you set up the way you like based on this template

folderName = {
  "folder_1": {'type_of_file_1', 'type_of_file_2'},
  "folder_2": {'type_of_file_1', 'type_of_file_2'},
  ...
}

For example: I only have code, compressed files, images, and document need to be organized. So I made 4 main folders and 'Others' for files that are not accounted for

folderNames = {
  "Compressed": {'7z','zip', 'rar'},
  "Programming": {'py', 'js', 'html', 'css', 'java', 'c', 'cpp', 'sql'},
  "Documents": {'pdf', 'doc', 'docx'},
  "Images": {'jpg', 'png', 'gif', 'svg', 'bmg'},
  "Others": {'NONE'}
}

If you are someone who has music, video, etc. You can add something like:

"Music": {'mp3','mpa','wav'},
'Videos':{'avi','flv','mkv','mov','mp4','wmv'}

Run the script on your terminal!

python organizer.py

Author

  • Nước Mắm Code
  • About

    A python script that helps organization your folder based the type of files. Very useful if you want to organize your Download folder or Desktop with random files

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages