Go to file
tfrdidi 38b70c8f22 Merge pull request #1 from dgnthr/master
Fixed errors due to integer division.
2016-02-14 11:52:09 +01:00
jpgSorter.py check for file existance before moving, deleting if already existing -> faster when restarting 2015-12-06 03:17:15 +01:00
numberOfFilesPerFolderLimiter.py Fixed errors due to integer division. 2016-01-28 17:16:44 +01:00
readme.md described new functions like file/directory limit 2015-12-06 01:57:26 +01:00
recovery.py only update status ever 1%, copy metadata 2015-12-06 03:16:17 +01:00

readme.md

Sort files recoverd by Photorec

Photorec does a great job when recovering deleted files. But the result is a huge, unsorted, unnamed amount of files. Especially for external hard drives serving as backup of all the personal data, sortig them is an endless job.

This program helps you sorting your files. First of all, the files are copied to own folders for each file type. Second, jpgs are distinguished by the year when they have been taken and by the event. We thereby define an event as a time span during them photos are taken. It has a delta of 4 days without a photo to another event. If no date from the past can be detected, these jpgs are put into one folder to be sorted manually.

All directories contain maximum 500 files. If one contains more, numbered subdirectories are created. If you want another file-limit, e.g. 1000, just put that number as third parameter to the execution of the programm: python recovery.py <path to files recovered by Photorec> <destination> 1000

Usage

python recovery.py <path to files recovered by Photorec> <destination>

This copies the recovered file to their file type folder in the destination directory. The recovered files are not modified. If a file already exists in the destination directory, it is skipped. Hence you can interrupt the process with Ctrl+C and continue afterwards.

Adjust event distance

For the case you want to reduce or increase the timespan between events, simply adjust the variable minEventDelta in jpgHelper.py. This variable contains the delta between events in seconds.