C# Class Google.Apis.Utils.DirectoryUtilities

Directory utilities which support copying, clearing and other operations on directories.
Show file Open project: Gainedge/BetterExplorer

Public Methods

Method Description
ClearOrCreateDirectory ( string dir ) : void

Clears or creates the specified directory.

CopyDirectory ( string sourceDir, string destDir ) : void

Copies a directory recursively to a new one.

GetRelativePath ( string child, string parent ) : string

Retrieves the relative path from the parent to the child.

Method Details

ClearOrCreateDirectory() public static method

Clears or creates the specified directory.
public static ClearOrCreateDirectory ( string dir ) : void
dir string
return void

CopyDirectory() public static method

Copies a directory recursively to a new one.
public static CopyDirectory ( string sourceDir, string destDir ) : void
sourceDir string Source directory
destDir string Destination directory
return void

GetRelativePath() public static method

Retrieves the relative path from the parent to the child.
public static GetRelativePath ( string child, string parent ) : string
child string
parent string
return string