https://github.com/josephtlyons/fileorganizer
A Python script that generates folders based on the extension names of the files in the current working directory, then sorts all files into these folders.
https://github.com/josephtlyons/fileorganizer
Last synced: 6 days ago
JSON representation
A Python script that generates folders based on the extension names of the files in the current working directory, then sorts all files into these folders.
- Host: GitHub
- URL: https://github.com/josephtlyons/fileorganizer
- Owner: JosephTLyons
- Created: 2018-08-02T22:24:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-09T16:08:02.000Z (about 6 years ago)
- Last Synced: 2025-06-11T11:18:12.205Z (7 days ago)
- Language: Python
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FileOrganizer
A Python script that generates folders based on the extension names of the files
in the current working directory (or within a specified directory), then sorts
all files into these folders.# FileOrganizer in Action:
# Rules:
- If a valid directory is specified as the second argument when running the
script, it is used
- If there is no second argument supplied, the script runs in the current
directory
- Ignore all sub-directories; do nothing to them
- Ignore all hidden files
- Ignore this Python script (if it resides in the folder being organized)
- Generate sub-directory names based on the extensions of the remaining files
- Move all files into their associated directories
- If a file has no extension, move it into "misc" folder# Notes:
Because the script skips directories, if you have a directory that pretends to
be a simple file, it won't be moved. This happens with applications that hide
information inside a directory pretending to be a file, for example:
`.xcodeproj`. While this file will open up Xcode, it is actually a directory.# TODO
- Update .gif