You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Enhancement] Add option in Factory options to throw an exception upon encountering a 'reserved path' #17
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.
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.
Is this something that comes up often? I don't think it's a mistake to reference the path NUL, for example, though I can understand some user-friendly error if someone tried to createfile/delete/move/copy/mkdir a path that's reserved.
Activity
nemec commentedon May 23, 2022
Is this something that comes up often? I don't think it's a mistake to reference the path
NUL, for example, though I can understand some user-friendly error if someone tried to createfile/delete/move/copy/mkdir a path that's reserved.