|
Joutsen v0.5.0+12-g5dd5f7e
|
A class representing a path leading to elements of the filesystem. More...
Public Member Functions | |
| LocalFilesystemPath (string path) | |
| Creates a new instance of this class. More... | |
| void | Create () |
| Creates the entire path by creating all the folders belonging to it. More... | |
| LocalFilesystemPath | Extend (string additionalPath) |
| Extends the current path by an additional folder, file or path represented by a string. More... | |
| LocalFilesystemPath | Extend (LocalFilesystemPath additionalPath) |
| Extends the current path by an additional path. More... | |
| File | GetAsFile () |
| Fetches the file located at this path. More... | |
| Folder | GetAsFolder () |
| Fetches the folder located at this path. More... | |
| override bool | Equals (object obj) |
| Compares this instance to another one for equality. More... | |
| override int | GetHashCode () |
| Calculates the hash code for this instance. More... | |
| override string | ToString () |
| Creates a string representation of this folder instance. More... | |
| int | CompareTo (object obj) |
| void | Create () |
| Creates the entire path by creating all the folders belonging to it. More... | |
| FilesystemPath | Extend (string additionalPath) |
| Extends the current path by an additional folder, file or path represented by a string. More... | |
| FilesystemPath | Extend (FilesystemPath additionalPath) |
| Extends the current path by an additional path. More... | |
| File | GetAsFile () |
| Fetches the file located at this path. More... | |
| Folder | GetAsFolder () |
| Fetches the folder located at this path. More... | |
Static Public Member Functions | |
| static LocalFilesystemPath | operator+ (LocalFilesystemPath path, string additionalPath) |
| Extends the current path by an additional folder, file or path represented by a string. More... | |
| static LocalFilesystemPath | operator+ (LocalFilesystemPath path, LocalFilesystemPath additionalPath) |
| Extends the current path by an additional path. More... | |
| static LocalFilesystemPath | operator/ (LocalFilesystemPath path, string additionalPath) |
| Extends the current path by an additional path. More... | |
| static LocalFilesystemPath | operator/ (LocalFilesystemPath path, LocalFilesystemPath additionalPath) |
| Extends the current path by an additional path. More... | |
| static String | GetDirectoryName (String path) |
| static String | Normalize (String path) |
Properties | |
| bool | Exists [get] |
| Checks if the path exists on the filesystem. More... | |
| bool | IsFolder [get] |
| Checks if the path leads to a folder in the filesystem or could lead to one (if it does not exist). More... | |
| bool | IsFile [get] |
| Checks if the path leads to a file in the filesystem or could lead to one (if it does not exist). More... | |
| LocalFilesystemPath | Root [get] |
| Returns the root of the path. More... | |
| LocalFilesystemPath | ParentPath [get] |
| Returns the path representing the parent of the current path. More... | |
| string | AbsolutePath [get] |
| Fetches the absolute path represented by this path. More... | |
| string[] | Components [get] |
| Returns the components (the folders that make up this path) of the path as a list. More... | |
Properties inherited from Joutsen.IO.FilesystemPath | |
| bool | Exists [get] |
| Checks if the path exists on the filesystem. More... | |
| bool | IsFolder [get] |
| Checks if the path leads to a folder in the filesystem. More... | |
| bool | IsFile [get] |
| Checks if the path leads to a file in the filesystem. More... | |
| FilesystemPath | Root [get] |
| Returns the root of the path. More... | |
| FilesystemPath | ParentPath [get] |
| Returns the path representing the parent of the current path. More... | |
| string | AbsolutePath [get] |
| Fetches the absolute path represented by this path. More... | |
| string[] | Components [get] |
| Returns the components (the folders that make up this path) of the path as a list. More... | |
A class representing a path leading to elements of the filesystem.
| Joutsen.IO.LocalFilesystemPath.LocalFilesystemPath | ( | string | path | ) |
Creates a new instance of this class.
| path | the path represented as a string |
| int Joutsen.IO.LocalFilesystemPath.CompareTo | ( | object | obj | ) |
| void Joutsen.IO.LocalFilesystemPath.Create | ( | ) |
Creates the entire path by creating all the folders belonging to it.
Implements Joutsen.IO.FilesystemPath.
| override bool Joutsen.IO.LocalFilesystemPath.Equals | ( | object | obj | ) |
Compares this instance to another one for equality.
| obj | the instance to check for equality |
| LocalFilesystemPath Joutsen.IO.LocalFilesystemPath.Extend | ( | LocalFilesystemPath | additionalPath | ) |
Extends the current path by an additional path.
| additionalPath | the path to add |
| LocalFilesystemPath Joutsen.IO.LocalFilesystemPath.Extend | ( | string | additionalPath | ) |
Extends the current path by an additional folder, file or path represented by a string.
| additionalPath | the path to add |
Implements Joutsen.IO.FilesystemPath.
| File Joutsen.IO.LocalFilesystemPath.GetAsFile | ( | ) |
Fetches the file located at this path.
Implements Joutsen.IO.FilesystemPath.
| Folder Joutsen.IO.LocalFilesystemPath.GetAsFolder | ( | ) |
Fetches the folder located at this path.
Implements Joutsen.IO.FilesystemPath.
|
static |
| override int Joutsen.IO.LocalFilesystemPath.GetHashCode | ( | ) |
Calculates the hash code for this instance.
|
static |
|
static |
Extends the current path by an additional path.
| additionalPath | the path to add |
|
static |
Extends the current path by an additional folder, file or path represented by a string.
| additionalPath | the path to add |
|
static |
Extends the current path by an additional path.
| additionalPath | the path to add |
|
static |
Extends the current path by an additional path.
| additionalPath | the path to add |
| override string Joutsen.IO.LocalFilesystemPath.ToString | ( | ) |
Creates a string representation of this folder instance.
|
get |
Fetches the absolute path represented by this path.
Implements Joutsen.IO.FilesystemPath.
|
get |
Returns the components (the folders that make up this path) of the path as a list.
Implements Joutsen.IO.FilesystemPath.
|
get |
|
get |
Checks if the path leads to a file in the filesystem or could lead to one (if it does not exist).
Implements Joutsen.IO.FilesystemPath.
|
get |
Checks if the path leads to a folder in the filesystem or could lead to one (if it does not exist).
Implements Joutsen.IO.FilesystemPath.
|
get |
Returns the path representing the parent of the current path.
Implements Joutsen.IO.FilesystemPath.
|
get |