C# Class ParkitectNexus.Data.Utilities.PathUtility

显示文件 Open project: ParkitectNexus/ParkitectNexusClient

Public Methods

Method Description
ArePathsEqual ( string path1, string path2 ) : bool
MakeRelativePath ( string fromPath, string toPath ) : string

Creates a relative path from one file or folder to another.

NormalizePath ( string path ) : string

Method Details

ArePathsEqual() public static method

public static ArePathsEqual ( string path1, string path2 ) : bool
path1 string
path2 string
return bool

MakeRelativePath() public static method

Creates a relative path from one file or folder to another.
public static MakeRelativePath ( string fromPath, string toPath ) : string
fromPath string Contains the directory that defines the start of the relative path.
toPath string Contains the path that defines the endpoint of the relative path.
return string

NormalizePath() public static method

public static NormalizePath ( string path ) : string
path string
return string