Skip to content

[Enhancement] Add option in Factory options to throw an exception upon encountering a 'reserved path' #17

@jeffward01

Description

@jeffward01

It would be nice to have a 'safe settings' that would allow the factory options to use a flag which would throw an exception upon any reserved path.

Currently, it will not throw an exception, and just be marked as reserved == true.

I think its an easy mistake to miss that reserved == true, or even when moving paths from a unix to windows system, its an easy mistake to miss the reserved path.

IMO - I think the default option for reserved paths is to throw an exception for all path types, while you would need to set an option to 'not throw' the exception.

image

Microsoft Docs on reserved paths (easy click link)

Proposed:

  • Always (by default)throw an exception under all path types when a reserved path is encountered
  • Add an option in the factory options to turn off the default option of throwing an exception when a reserved path is encountered. Essentially, when this flag is toggled, the library will treat reserved paths as it does today currently (no exception will be thrown, but reserved == true will be marked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions