FileSystemPath
ReferencesAn absolute or relative path on a file system. This type re-implements some functionality normally provided by the Uri type, but it does so in a reliable, and cross-platform consistent way.
Constructors
Properties
ContainsDrive
#Test whether the first element in the folder list probably represents a drive identifier.
Folders
#A list of path (i.e. drive and directory) elements. This does not include the file name or file extension, and the first element may be an empty string in the case the path starts with a directory separator character (i.e. a Unix root). If you modify the elements in this array it may render the path invalid.
Methods
MakeAbsolute
#Create an absolute path from a relative path and a starting point.
Parameters:
| from (FileSystemPath) | Relative path to resolve. |
| origin (FileSystemPath) | Absolute starting point. |
Returns: An absolute path.
MakeRelative
#Create a relative path between two absolute paths. If there is no relative path from 'a' to 'b' because they have nothing in common, 'b' is returned.
Parameters:
| a (FileSystemPath) | Absolute departure. |
| b (FileSystemPath) | Absolute terminal. |
Returns: A relative path encoding the difference from a to b, or just b.
ToString
#Create a string representation of this path using the current OSs directory separator symbols.
Overrides: Object.ToString
ToString
#Create a string representation of this path using custom separator symbols.