[Windows] Mount and restore fail for paths with trailing spaces or forbidden characters (':')
Hi @jkowalski,
I use Kopia 0.22.3.
When I mount`` a snapshot on windows (that has google drive data containing files and folders with windows forbidden names), for a folder that has a trailing whitespace like a folder name with trailing whitespace /afile.txt` I can't enter that folder.
When I restore, for a folder with the name another folder/12:13:14 I get the error : error restoring: restore error: create directory: error creating directory: failed to stat path C:/Users/.../another folder/12:13:14: The filename, directory name, or volume label syntax is incorrect.
It seems windows filenames are still not supported correctly (converted to valid ones).
As seen in this past issue, you already listed the forbidden names in Windows filesystems (https://stackoverflow.com/questions/1976007/what-characters-are-forbidden-in-windows-and-linux-directory-names) so I thought it was taken care of.
Do you already sanitize invalid Windows path names (colons, trailing spaces etc.) during restore and mount?
Just in case you're the right person for this @julio-lopez as I saw a related issue: windows MAX_PATH issue.
I don't own the data, I'm only in charge of the backup so I cannot rename files/folders in the source unfortunately.
Source: kopia/kopia