C# Class Emul8.Bootstrap.PathHelper

Exibir arquivo Open project: emul8/emul8 Class Usage Examples

Public Methods

Method Description
AreSame ( string patha, string pathb ) : bool

Checks if two paths are the same assuming they are relative to working directory calculated in constructor.

GetRelativePath ( string filespec ) : string

Calculates path relative to working directory calculated in constructor.

PathHelper ( IEnumerable workingDirs ) : System

Initializes a new instance of the AntBootstrap.PathHelper class. It calculates common prefix path of all directories provided as an argument.

Method Details

AreSame() public method

Checks if two paths are the same assuming they are relative to working directory calculated in constructor.
public AreSame ( string patha, string pathb ) : bool
patha string
pathb string
return bool

GetRelativePath() public method

Calculates path relative to working directory calculated in constructor.
public GetRelativePath ( string filespec ) : string
filespec string
return string

PathHelper() public method

Initializes a new instance of the AntBootstrap.PathHelper class. It calculates common prefix path of all directories provided as an argument.
public PathHelper ( IEnumerable workingDirs ) : System
workingDirs IEnumerable
return System