You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error for Windows invalid file names should indicate the invalid character or name part #8968
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
I get the error "name is invalid, contains Windows reserved character (?, *, etc.)"
for this file name:
"Arnold Schoenberg (1874-1951) - Verklärte Nacht (Transfigured Night), Op. 4 (1899).mp3"
The file comes from an android phone and should be synced to Windows 10.
I don't see any problem with the file name. I even checked: I can create a file in Windows with that name.
I wonder, because the error for a trailing space is in fact different (name is invalid, must not end in space or period on Windows). Maybe your trailing space was in fact a trailing control character or something. Nonetheless we could improve the error to contain the actual character that is disallowed.
changed the title [-]name is invalid, contains Windows reserved character (?, *, etc.)[/-][+]Error for Windows invalid file names should indicate the invalid character or name part[/+]on Jul 6, 2023
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
Finomosec commentedon Jul 6, 2023
Finomosec commentedon Jul 6, 2023
bt90 commentedon Jul 6, 2023
Trailing space?
Finomosec commentedon Jul 6, 2023
Maybe there is some invisible character in there?
Suggestion:
Improve the error message to tell:
Finomosec commentedon Jul 6, 2023
In deed. There were 2 trailing spaces...
Thanks!
But my previous point stands.
Improved error message would be great.
Maybe even a special one for "trailing spaces".
Finomosec commentedon Jul 6, 2023
+ leading spaces?! (if that's also a problem)
calmh commentedon Jul 6, 2023
I wonder, because the error for a trailing space is in fact different (
name is invalid, must not end in space or period on Windows). Maybe your trailing space was in fact a trailing control character or something. Nonetheless we could improve the error to contain the actual character that is disallowed.lib/fs: Clarify errors for Windows filenames (fixes syncthing#8968)
[-]name is invalid, contains Windows reserved character (?, *, etc.)[/-][+]Error for Windows invalid file names should indicate the invalid character or name part[/+]Merge branch 'main' into multicon
Merge branch 'main' into prometheus
Merge branch 'main' into lzma2
lib/fs: Clarify errors for Windows filenames (fixes syncthing#8968) (s…