PDA

View Full Version : [SOLVED] Need something to sort 2-3 millions files in 4500 folders....HELP



rouvenster
January 6th, 2018, 07:52 AM
Hello everyone,
So yesterday I accidentally damaged the system partition files of a 1TB HDD which stored mostly movies, pictures and videos.
I ran "sudo photorec" from testdisk and managed to recover tons of random stuff after 10 hours of inspecting all the sectors.

Here is my problem : the restored data is randomly thrown in 4538 folders called recup_dir.1-->recup_dir.4538 and each one contain 500-800 files with all my stuff but mostly mixed with random ******** (random txt files, thumbnails, java nonsense...etc).

I can try to sort and delete one by one but then i would finish in 8 years. I am sure there is a magic linux app or terminal command that can help me ?

thanks guys

rouvenster
January 6th, 2018, 02:07 PM
Hail the Holy Graal:
https://github.com/tfrdidi/sort-PhotorecRecoveredFiles

I run the process now, there is 2 287 448 files to process, i am just happy it will do it and not me by myself !