In your actual data you have those informations (‘document type’, ‘invoice date’, …) within the name of the file. Correct?
So why does the Script need to extract this data to build an equivalent list to your current tree in file system? This would be a next step in improving the data.
In your example the filename is
"[prefix]Facture <SOME_COMPANY_NAME> du 9 avril 2025 d’un montant de 120 €[postfix]”.
In Spreadsheet the title for this file would be
“[prefix]Facture <SOME_COMPANY_NAME> du 9 avril 2025 d’un montant de 120 €[postfix]”.
No information will be lost, no information will be added. Nothing to correct here.
If you want to update and/or correct information:
In current workflow you have to enter each folder and change the filename. In the spreadsheet the filename doesn’t need to be changed anymore - you just update the information in the sheet. No need to switch to another directory to alter another file’s info. Just edit the associated cell.