Disclaimer: Please make backup your media before using this skript!
Sort files with SUPPORTED_EXTENSIONS by creation date and put them to directories Year/Month/Day by exif headers Date. If there is no exif Date it takes from os creation time. Use PIL, piexif, exifread, pyexiv2 libraries. Sorting jpeg files by date and time from EXIF.
for ex.:
C:\Users\user\sort_files\result\2017\6\19\IMG_1017.jpg
-
Fork/Clone/Download this repo
git clone https://github.com/Volodichev/sort_files.git
-
Navigate to the directory
cd sort_files`
-
Install the dependencies
pip install -r requirements.txt
-
Put copy of your files to folder 'source'
-
Run the sort_files.py script and all sorted staff will move to folder 'result'