Table of Contents

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

path string

Path 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

string

Path

The path to the directory.

public string Path { get; }

Property Value

string

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

directory DirectoryRef
subPath string

Returns

DirectoryRef

implicit operator string(DirectoryRef)

public static implicit operator string(DirectoryRef directory)

Parameters

directory DirectoryRef

Returns

string