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
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
Returns
AddSearchPath(string)
Adds in a new search path to the list to search through
public static void AddSearchPath(string searchPath)
Parameters
searchPath
stringThe 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
stringThe 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
stringThe local file name and suffix
Returns
- string
The full path to the file