Enum PathOptions
Provides options to control how path parsing is handled.
Namespace: Singulink.IO
Assembly: Singulink.IO.FileSystem.dll
Syntax
[Flags]
public enum PathOptions
Remarks
Most applications should not attempt to process unfriendly paths as the pitfalls and edge cases are numerous and difficult to predict. NoUnfriendlyNames is generally the recommended option to use. Applications like file managers that must work with all possible paths including those that are likely to be buggy/problematic should use None instead and take great care to ensure they are handled correctly. It is safe to use None for paths that are obtained by directly querying the file system (as opposed to user input or file data) and never stored for later use.
Fields
Name | Description |
---|---|
AllowEmptyDirectories | Allows paths with empty directories to be processed without throwing an exception by removing them from the path. |
NoLeadingSpaces | Disallows entry names with a leading space. |
NoNavigation | Disallows navigational path segments (i.e. |
NoReservedDeviceNames | Disallows entry names that match reserved device names. This flag has no effect on the Unix path format. |
NoTrailingDots | Disallows entry names with a trailing dot. This flag has no effect on the Unix path format. |
NoTrailingSpaces | Disallows entry names with a trailing space. |
NoUnfriendlyNames | A combination of the NoReservedDeviceNames, NoLeadingSpaces, NoTrailingSpaces and NoTrailingDots flags. This is the default value used for all parsing operations if no value is specified. |
None | Default value with no options set which allows all possible valid file system paths without wildcard characters. |
PathFormatDependent | Causes the NoUnfriendlyNames flags to be appended when using the Windows and Universal path formats. |