Interface IPath
Represents an absolute or relative path to a file or directory.
Namespace: Singulink.IO
Assembly: Singulink.IO.FileSystem.dll
Syntax
public interface IPath : IEquatable<IPath?>
Properties
Name | Description |
---|---|
HasParentDirectory | Gets a value indicating whether this path has a parent directory. |
IsAbsolute | Gets a value indicating whether this is an absolute path. |
IsDirectory | Gets a value indicating whether this is a directory path. |
IsFile | Gets a value indicating whether this is a file path. |
IsRelative | Gets a value indicating whether this is a relative path. |
IsRooted | Gets a value indicating whether this path is rooted. Relative paths can be rooted and absolute paths are always rooted. |
Name | Gets the name of the file or directory that this path refers to. |
ParentDirectory | Gets the parent directory of this file/directory. |
PathDisplay | Gets a path string suitable for user friendly display or serialization. Do not use this value to access the file system. |
PathFormat | Gets the format of this path. |
Methods
Name | Description |
---|---|
Equals(IPath?) | Determines whether this file/directory is equal to another file/directory. |