Little FS file recovery

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
KJM
Posts: 158
Joined: Sun Nov 18, 2018 10:53 pm
Location: Sydney AU

Little FS file recovery

Post by KJM » Mon Jul 25, 2022 9:01 am

Is there a way to recover an accidentally os.removed file from flash in little FS on the esp32 or is it gone for good?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Little FS file recovery

Post by Roberthh » Mon Jul 25, 2022 10:28 am

AFAIK, there are no file recovery tools. But the data ist still there. So you could use the block device driver‘s readblocks method to read out the file system‘s data space. Unless you or an IDE writes to the fs, there are not automatic writes happening.

Post Reply