C# Class SpeakFriend.Utilities.PathUtil

Show file Open project: teamaton/speak-lib

Public Methods

Method Description
EnsureDirectoryExists ( this absolutePath ) : void

Ensures that all folders on the given path - file or dir (dir must end with /) - exist; if they don't they will be created.
Throws a SpeakLibException if the missing folders cannot be created.

GetRelativePath ( string path, string rootDirectory ) : string

Method Details

EnsureDirectoryExists() public static method

Ensures that all folders on the given path - file or dir (dir must end with /) - exist; if they don't they will be created.
Throws a SpeakLibException if the missing folders cannot be created.
public static EnsureDirectoryExists ( this absolutePath ) : void
absolutePath this Absolute path of a file or directory (dir must end with /).
return void

GetRelativePath() public static method

public static GetRelativePath ( string path, string rootDirectory ) : string
path string
rootDirectory string
return string