Table of Contents

Class PathHelper

Namespace
NominalSystems.Universe
Assembly
NominalSystems.Universe.dll

Static helper function for getting files and paths in a directory

public static class PathHelper
Inheritance
PathHelper

Properties

SolutionDirectory

Returns the full path to the solution directory

public static string SolutionDirectory { get; }

Property Value

string

Methods

AddPath(string, string)

Searches through known paths to find a file of a particular name

public static bool AddPath(string file, string path = "")

Parameters

file string

The name of the file to add

path string

A path to the file [optional]

Returns

bool

AddSearchPath(string)

Adds in a new search path to the list to search through

public static void AddSearchPath(string searchPath)

Parameters

searchPath string

The path to search through

GetFolder(string)

Returns the folder name of the file path that is hosts a particular file found in the system.

public static string GetFolder(string file)

Parameters

file string

The local file name and suffix

Returns

string

The full directory to the folder of the file

GetPath(string)

Returns the full system path for a particular file

public static string GetPath(string file)

Parameters

file string

The local file name and suffix

Returns

string

The full path to the file