Skip to content

Repository for simple file organization into seperate directories according to the filename

License

Notifications You must be signed in to change notification settings

sedirmohammed/file_organization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

file_organization

In the present implementation, the script is primarily used to organize images and videos (but it can of course be used for other files as well) into directories according to the file name. However, the script assumes that the files have the following name format: Year-Month-Day... So for example: 2022-01-01CoolPhoto.jpg, 2022-01-02_funny_video.mov, 2021-05-16_GoodTime.mp3 would be valid file names.

The following directories structure is created, based on year and month, and the files are moved into it accordingly:

BASE/DIRECTORY
|-- 2021
| |-- 05
| | |-- 2021-05-16_GoodTime.mp3
|-- 2022
| |-- 01
| | |-- 2022-01-01CoolPhoto.jpg
| | |-- 2022-01-02_funny_video.mov

The BASE/DIRECTORY can be set with the variable DIRECTORY

About

Repository for simple file organization into seperate directories according to the filename

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages