After I recovered my files with PhotoRec, I ran fdupes $ fdupes -rdNI --sameline /home/user > fdupes.txt. I couldn't use the option -d because round about 1.6 million files in my system have been recovered. I also ran fdupes several times until it found no more duplicates.
The thing is that I got lots of entries in fdupes.txt (> 50 MB) being in the structure of
[+] /home/user/recup/jar/f105168728.jar
[-] /home/user/a/path/to/dir/and/file/myfile_1.ending
[-] /home/user/another/path/to/dir/and/file/myfile_2.ending
Is there a script or already written program which moves the 'recup' files to the path where I arranged them in order in my directories?
Many of the directories won't be there because I also did $ find /home/user/ -depth -type d -empty -exec rmdir {} \; afterwards.
Can I create folders with subfolders in them in one single step in python (script) or another language?