Calibre
can't determine Metadata from the Full pathname of the file.
(NB. Calibre works on many O/S. Just think of all the variants in file systems it would have to get correct

)
On Windows, you might explore a Bulk renamer like Metamorphose and use that to flatten your folder structure ON A BACKEDUP

file source.