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
directory
stringThe directory where the package file is located.
packageName
stringThe 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
directory
stringThe directory to check.
Returns
- bool
True
if the given directory is the root directory of the repository,false
otherwise.