This question already has an answer here:
I was using my 2TB SSD, and after a while, maybe because of a mis-click, it got entirely hard erased, only few files survived (40KB).
After that, I attempted to use Glary Undelete to recover files, but I realized that it doesn't recover folder structures.
I have many files from many folders and Lightroom catalogs that won't work anymore if the folder structure isn't the same as before.
How do I do to recover the entire folder structure from an erased hard drive using totally free software?