Like an idiot, I didn't have a backup of my hardrive, and Windows attempted to update several times but failed because, after running a scan, my hard drive is failing. On one of the update attempts, my computer died. After logging in, I was greeted with the Windows temporary account, and all my files were still there, but heading the warnings, I tried to fix the issue rather than backing up the data immediately, which didn't work, and after trying a few times, I checked my user folder to begin a backup, and everything was gone.
My friend and I booted the computer onto a live Linux USB, and took an image of the drive, and began restoring files with TestDisk, which restored thousands of files, only to realize, they were all restored under UUID#### folders in the root directory, but no directory structure was preserved, so I have no idea where to even begin either where to put what. The current theory is that the thumbs.db file, or whatever stores directory structure information was corrupted.
Is there any way, or any program that can restore files into a directory structure so I don't have to painstakingly sort through every file?