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

Afficher le fichier Open project: WSCF/WSCF

Méthodes publiques

Méthode 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 méthode

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.
Résultat string

GetRelativePath() public static méthode

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.
Résultat string