Skip to content

Validate Path considers all control characters and ':' as invalid #78

@bollhals

Description

@bollhals

The ValidatePath function

  • validates that none of the chars is a control character
  • then forwards to ValidatePathImpl, which
    • validates that no ':' exists.

AFAIK the only not allowed char in a linux filesystem is a '\0' char. Windows has a few more.

Therefore I'm wondering whether the validation could change to either:

  • Only validate the common set => no '\0' exists
    OR
  • Allow FS to define their own set of illegal chars to validate via the ctor

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions