Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend check for illegal Windows filenames #1049

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Jeffrey-Lim
Copy link

@Jeffrey-Lim Jeffrey-Lim commented Apr 25, 2024

Fixes #1048. It took some time to get it right, but I'm pretty sure this covers every possible illegal file name now.

For reference, the following names are illegal on Windows:

  • A name with any of the characters < > : " \ | ? * or any characters in the ASCII range 0-31
  • CON, PRN, AUX, NUL, COM0, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, COM¹, COM², COM³, LPT0, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9, LPT¹, LPT², and LPT³
  • A name ending with a space or period

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Extend check for illegal Windows filenames
2 participants