C# Class Artemis.Engine.Utilities.DirectoryUtils

Mostra file Open project: ArtemisEngine/Artemis-Engine

Public Methods

Method Description
IsChildDirectoryOf ( string parentDirectory, string childDirectory ) : bool

Determine if a given directory is a child directory of another.

MakeRelativePath ( string rootDirectory, string childDirectory ) : String

Return the difference between a root directory and a child directory. For example, MakeRelativePath("a\b\", "a\b\c\d\e") will return "c\d\e".

Method Details

IsChildDirectoryOf() public static method

Determine if a given directory is a child directory of another.
public static IsChildDirectoryOf ( string parentDirectory, string childDirectory ) : bool
parentDirectory string
childDirectory string
return bool

MakeRelativePath() public static method

Return the difference between a root directory and a child directory. For example, MakeRelativePath("a\b\", "a\b\c\d\e") will return "c\d\e".
public static MakeRelativePath ( string rootDirectory, string childDirectory ) : String
rootDirectory string
childDirectory string
return String