|
| static AbsolutePath | GetRoot (this AbsolutePath self) |
| |
| static bool | IsRoot (this AbsolutePath self) |
| |
| static string | RelativeToBase (this AbsolutePath self, AbsolutePath root) |
| | Return a path connecting from right side as a base to the left side as target.
|
| |
| static string | BaseRelativeTo (this AbsolutePath self, AbsolutePath subfolder) |
| | Return a path connecting from left side as a base to the right side as target.
|
| |
| static bool | FileExists (this AbsolutePath path) |
| |
| static bool | DirectoryExists (this AbsolutePath path) |
| |
| static AbsolutePath | ExistingFile (this AbsolutePath path) |
| | Returns null if designated file doesn't exist. This can be used in null-propagating expressions without the need for if statements, like InPath.ExistingFile()?.Parent ?? "/default/path".AsPath().
|
| |
| static AbsolutePath | ExistingDirectory (this AbsolutePath path) |
| | Returns null if designated directory doesn't exist. This can be used in null-propagating expressions without the need for if statements, like InPath.ExistingDirectory()?.Parent ?? "/default/path".AsPath().
|
| |
| static IEnumerable< AbsolutePath > | Files (this AbsolutePath path, string pattern="*", SearchOption searchOption=SearchOption.TopDirectoryOnly) |
| | Return all files in a directory.
|
| |
| static IEnumerable< AbsolutePath > | Directories (this AbsolutePath path, string pattern="*", SearchOption searchOption=SearchOption.TopDirectoryOnly) |
| | Return all subfolders in a directory.
|
| |
| static bool | HasExtension (this AbsolutePath path, string extension, params string[] alternativeExtensions) |
| | Returns true if path ends in any of the given extensions. Input extensions should have leading .
|
| |
| static AbsolutePath | WithExtension (this AbsolutePath path, string extension) |
| | Replace extension of left-side with~ or add given extension
|
| |
| static AbsolutePath | CreateDirectory (this AbsolutePath path) |
| | Creates a new directory or does nothing if that's already exists.
|
| |
| static List< AbsolutePath > | Copy (this AbsolutePath path, AbsolutePath to, string pattern="*") |
| | Copy a file or a directory recursively to be the target path.
|
| |
| static List< AbsolutePath > | CopyInto (this AbsolutePath path, AbsolutePath intoDirectory, string pattern="*") |
| | Copy a file or a directory recursively into a target folder.
|
| |
| static List< AbsolutePath > | Move (this AbsolutePath path, AbsolutePath to, string pattern="*") |
| | Move a file or a directory recursively to be the target path.
|
| |
| static List< AbsolutePath > | MoveInto (this AbsolutePath path, AbsolutePath intoDirectory, string pattern="*") |
| | Move a file or a directory recursively into a target folder.
|
| |
The API NUKE has for AbsolutePath relies heavily on extension methods. In fact if file system operations are expressed with extension methods to AbsolutePath it can yield code which is much more comfortable to write.
Most generic path operation functions are taken from NUKE
Definition at line 175 of file AbsolutePath.Build.cs.