Can't find .py extention in the list of available extensions

Using PhotoRec to recover lost data
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
sugarman
Posts: 3
Joined: 24 May 2016, 14:13

Can't find .py extention in the list of available extensions

#1 Post by sugarman »

Hi there

I was looking around a lot of resources and found an information that Photorec is an amazing tool for recovering missing .py files, but after running of PhotoRec I can find only .pyc extension, but no .py.

Do I need to configure PhotoRec or what is the expected behavior?

Thanks

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Can't find .py extention in the list of available extensions

#2 Post by cgrenier »

Python files shuld be recovered by .txt and .tx? file families

sugarman
Posts: 3
Joined: 24 May 2016, 14:13

Re: Can't find .py extention in the list of available extensions

#3 Post by sugarman »

cgrenier wrote:Python files shuld be recovered by .txt and .tx? file families
I'm going to recover original Python files with .py extension, but using PhotoRec I can check extension for Python binaries(.pyc).

fidentify told me that .py extension is known for it, but how to restore files with this extension via PhotoRec I can't find...

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Can't find .py extention in the list of available extensions

#4 Post by cgrenier »

Python source files are text files with a .py extension.
As written previously, you need to have the txt and tx? file families enabled in File Options to recover them.

Locked