Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would you guys be interested in a photorec sorter script? #28

Open
erikpopp opened this issue Jul 5, 2017 · 5 comments
Open

Would you guys be interested in a photorec sorter script? #28

erikpopp opened this issue Jul 5, 2017 · 5 comments

Comments

@erikpopp
Copy link

erikpopp commented Jul 5, 2017

Awhile ago, I used photorec to recover the files from someone's failing hard drive. He had some engineering program that created files with extensions I had never heard of before. photorec did a great job of recovering files, and I ended up with a folder that had hundreds of thousands of files in it. I found this annoying, since most of them were useless (.exe, .dll, etc.). If photorec recovered the files he needed, I wouldn't know. So I wrote a script that creates a folder for each file type that photorec recovers, and moves all files with that extension into that folder. It handles files with no extension by moving them into their own folder. I then gave him the external drive he had provided for me to put recovered files on and he was able to find what he needed at his leisure.

Would you guys like to include it with testdisk and photorec for systems that have bash available? If so, where in the source tree should I upload it?

@wdlkmpx
Copy link

wdlkmpx commented Jul 11, 2017

That script looks handy.. i'm interested.. could you post a link to the script?

@erikpopp
Copy link
Author

erikpopp commented Jul 11, 2017 via email

@noahbjohnson
Copy link

There are quite a few examples of these scripts on github... If someone wants to implement in cpp, that would be interesting. However, I don't think bash scripts have a place in this repo.

@erikpopp
Copy link
Author

erikpopp commented Apr 27, 2019 via email

@cimballihw
Copy link

cimballihw commented Aug 18, 2020

Hello guys. I used Photorec to recover personal data from a damaged hard disk. And I used a python script sorting the ouput, given in the link below:
https://github.com/tfrdidi/sort-PhotorecRecoveredFiles
However this script uses shutil.copy2 function, which supposedly copies metadata. But as Photorec uses files carving method, the metadata are lost... and when I try to run this script, it fails at some point because of a call to copystat...
As a result it is better to replace copy2 by copy... which does not try to copy the metadata...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants