C# Class Thinktecture.Tools.Web.Services.Wscf.Environment.IOPathHelper

ファイルを表示 Open project: WSCF/WSCF

Public Methods

Method Description
GetAbsolutePath ( string relativePath, string currentFolder, string rootFolder ) : string

Gets the absolute path of a given file with relative path.

GetRelativePath ( string relativePathOf, string relativeTo ) : string

Retrieves the relative path of a given file relative to a given directory.

Method Details

GetAbsolutePath() public static method

Gets the absolute path of a given file with relative path.
public static GetAbsolutePath ( string relativePath, string currentFolder, string rootFolder ) : string
relativePath string Relative path of the file to fine the absolute path.
currentFolder string Path of the current directory.
rootFolder string Path of the root directory.
return string

GetRelativePath() public static method

Retrieves the relative path of a given file relative to a given directory.
public static GetRelativePath ( string relativePathOf, string relativeTo ) : string
relativePathOf string Absolute path of the file to find the relative path of.
relativeTo string Path of the directory which the result must be relative to.
return string