$ ntfsundelete /dev/sdb1 > files.txt # list all recoverable files
$ ntfsundelete /dev/sdb1 -u -i <inode> -o <tgtname> -d <tgt/dir> # recover the specific file
parse files
Not all files recorvered by ntfsundelete has a filename.
So undelete all files as unknown and use file util to recognize the recorved files’ type, then rename with suffixes.
Python has modules that can r/w with files, such as python-docx with docx, pypdf2 with pdf, rarfile with rar ans so on.
So we use python to analyse the target file and rename the files according to its title or content.