Skip to content

Bug: Files is allowing forbidden folder names (CON, NUL, etc) #9522

Closed
@Araraura

Description

@Araraura

Description

It seems that Files doesn't prevent the user from creating files or folders with forbidden names that regular File Explorer would otherwise prevent.

It should prevent the user from creating files or folders named (in either lowercase or uppercase):

CON
PRN
AUX
NUL
COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, COM0
LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9, LPT0

con01
con02

Steps To Reproduce

  1. Open Files
  2. Go to a place where you can freely create folders or files
  3. Create a folder or a file with a forbidden name (list in the description)
  4. Open file explorer and create a folder or a file with the same name
  5. File explorer will not allow the creation of a folder or a file with that name

Steps to fix

  • Display text when forbidden folders names are entered into the new folder modal
  • Display error content dialog when users try renaming a folder to con

Files Version

2.3.3.0

Windows Version

Windows 11 21H2 22000.778

Relevant Assets/Logs

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions