Skip to content

Python script to organise files in a directory based on extension.

License

Notifications You must be signed in to change notification settings

schnappischnap/organise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

organise.py

Python script to organise files in a directory based on extension.

  • Moves all files to sub-folders based on the files extension.
  • Moves files in the current working directory or the first command line argument.
  • Can specify certain files to be ignored, preventing them from being moved.
  • The extensions, sub-folder names, and exclusions are defined in Organise.json.

Organise.json is used in this format:

{
  "Exclude": [
    "filename1",
    "filename2"
  ],
  "Directories": {
    "Folder1": [
      ".extension1",
      ".extension2"
    ],
    "Folder2": [
      ".extension3"
    ]
  }
}

About

Python script to organise files in a directory based on extension.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages