Class PathFormat
Provides formatting for OS specific and universal path formats.
Inherited Members
Namespace: Singulink.IO
Assembly: Singulink.IO.FileSystem.dll
Syntax
public abstract class PathFormat
Properties
Name | Description |
---|---|
Current | Gets the path format for the current platform. |
RelativeCurrentDirectory | Gets the relative directory that represents the current directory. |
RelativeParentDirectory | Gets the relative directory that represents the parent directory. |
SeparatorChar | Gets the standard path separator character. Alternate path characters are normalized to use the standard path separator. |
SupportsRelativeRootedPaths | Gets a value indicating whether the path format supports relative rooted paths, i.e. relative paths that start with a path separator. |
Universal | Gets a universal cross-platform path format that plays nice across all operating systems. Only non-rooted relative paths are supported. |
Unix | Gets a path format compatible with Unix-based platforms like macOS, iOS, Android and Linux. |
Windows | Gets a path format compatible with the Windows platform. |
Methods
Name | Description |
---|---|
SplitAbsoluteRoot(ReadOnlySpan<char>, out ReadOnlySpan<char>) | Returns the root of the absolute path and outputs the remaining non-rooted relative component of the path. |