Class OSPath
Represents a platform-agnostic file system path. This record normalizes input paths based on the operating system, providing utility methods to handle file paths in a cross-platform manner.
Implements
Inherited Members
Namespace: PoeShared.IO
Assembly: PoeShared.dll
Syntax
public record OSPath : IEquatable<OSPath>
Constructors
Name | Description |
---|---|
OSPath(OSPath) | |
OSPath(string) |
Properties
Name | Description |
---|---|
AsUnixPath | Gets the Unix-style path representation. |
AsWindowsPath | Gets the Windows-style path representation. |
Depth | Gets the depth of the path, calculated as the number of directory levels in the path. |
DirectoryName | Gets the directory name component of the path. |
EqualityContract | |
Exists | Gets a value indicating whether the file denoted by this path exists. |
FileName | Gets the file name component of the path. |
FullPath | Gets the platform-specific full path. |
Methods
Name | Description |
---|---|
Combine(OSPath) | |
Combine(string) | |
Equals(OSPath) | |
Equals(object?) | |
GetHashCode() | |
PrintMembers(StringBuilder) | |
ToString() | |
<Clone>$() |
Operators
Name | Description |
---|---|
operator ==(OSPath?, OSPath?) | |
operator !=(OSPath?, OSPath?) |