Class DirectoryHelper
Helper class that contains methods to retrieve and manipulate SDK locations.
public static class DirectoryHelper
- Inheritance
-
DirectoryHelper
Methods
GetPackageFile(string, string)
Gets the path to the file corresponding to the given package name in the given directory.
public static string GetPackageFile(string directory, string packageName)
Parameters
directorystringThe directory where the package file is located.
packageNamestringThe name of the package.
Returns
- string
The path to the file corresponding to the given package name in the given directory.
IsRootDevDirectory(string)
Indicates whether the given directory is the root directory of the repository, when executing from a development build.
public static bool IsRootDevDirectory(string directory)
Parameters
directorystringThe directory to check.
Returns
- bool
Trueif the given directory is the root directory of the repository,falseotherwise.