Class DirectoryRef
- Namespace
- Ando.References
- Assembly
- ando.dll
Represents a reference to a directory. Provides type-safe directory references for operations that need a working directory.
public class DirectoryRef
- Inheritance
-
DirectoryRef
- Inherited Members
Constructors
DirectoryRef(string)
Creates a directory reference from a path.
public DirectoryRef(string path)
Parameters
pathstringPath to the directory.
Properties
Name
The directory name (derived from the path). Used in logging and step names for clarity.
public string Name { get; }
Property Value
Path
The path to the directory.
public string Path { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator /(DirectoryRef, string)
Combines this directory with a subdirectory path. Allows syntax like: website / "dist"
public static DirectoryRef operator /(DirectoryRef directory, string subPath)
Parameters
directoryDirectoryRefsubPathstring
Returns
implicit operator string(DirectoryRef)
public static implicit operator string(DirectoryRef directory)
Parameters
directoryDirectoryRef