4 ms·
This looks great, I will check it out the next time I `rm` something in the wrong folder. My only question is if a CLI option is available (instead of the inte
by ryan-duve 4y ago
This looks great, I will check it out the next time I `rm` something in the wrong folder.
My only question is if a CLI option is available (instead of the interactive interface)? That is, whether something like:
python3 -m recoverpy --path /path/to/folder --string "My super important string" --outfile /path/to/file.txt
which outputs the match results to the output file without interaction.
- pablolec 4y agoWell, there is no CLI option right now. The main reason is you can, and you probably will, find multiple results for your search string. Other than simplifying what you can already do with a combination of "grep" and "dd", the main advantage of RecoverPy is its TUI which lets you select a result between maybe thousands. And I worked to optimize performance if you, for example, search the string "e" in your whole home partition. Which would be a disaster if I output the result into a file. Overall I guess a CLI option would be a great addition but I have no good idea in mind to make it work :/ The only thing I see is like outputting the first result from Google into a file. Good for the user if the first one is the right one, but else...