on-internet
← Community

Is trailing space in base file name before extension (i.e. "Hello .txt") acceptable in Windows file names? [closed]

Stack Overflow ·

I have read both What characters are forbidden in Windows and Linux directory names? and Forbidden file/dir names in Linux Darwin and Windows_NT oses , but neither of them address the specific question of whether a trailing space is allowed even if it is only part of the base file name (before dot separator and extension) when the file name has an extension. Here's what https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file have to say on this: Do not end a file or directory name with a space or a period. Although the underlying file system may support such names, the Windows she

Comments

Sign in or sign up to comment and upvote.

No comments yet.