Interface IPath
Represents an absolute or relative path to a file or directory.
Namespace: Singulink.IO
Assembly: Singulink.IO.FileSystem.dll
Syntax
[SuppressMessage("Design", "CA1065:Do not raise exceptions in unexpected locations", Justification = "Properties need to be overridden by implementing types")]
public interface IPath : IEquatable<IPath?>
Properties
Name | Description |
---|---|
HasParentDirectory | Gets a value indicating whether this path has a parent directory. |
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. |
ToString() | Returns a string containing the path format, entry type and the path. Not usable for file system operations. |
op_Equality(IPath?, IPath?) | Determines whether two paths are equal. |
op_Inequality(IPath?, IPath?) | Determines whether two paths are not equal. |