C# Class C24.TeamSharper.PathHelper

显示文件 Open project: CHECK24/c24.TeamSharper

Public Methods

Method Description
GetNavigationPath ( string sourceDirectory, string destinationDirectory ) : string
MakeFilePathAbsoluteToDirectory ( string filePath, string baseDirectory ) : string
MakeFilePathRelativeToDirectory ( string filePath, string baseDirectory ) : string

Private Methods

Method Description
EnsureTrailingBackslash ( string path ) : string
RemoveTrailingBackslash ( string path ) : string

Method Details

GetNavigationPath() public static method

public static GetNavigationPath ( string sourceDirectory, string destinationDirectory ) : string
sourceDirectory string
destinationDirectory string
return string

MakeFilePathAbsoluteToDirectory() public static method

public static MakeFilePathAbsoluteToDirectory ( string filePath, string baseDirectory ) : string
filePath string
baseDirectory string
return string

MakeFilePathRelativeToDirectory() public static method

public static MakeFilePathRelativeToDirectory ( string filePath, string baseDirectory ) : string
filePath string
baseDirectory string
return string