DirectoryHelper Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
Helper class that contains methods to retrieve and manipulate SDK locations.
public static class DirectoryHelper
| Name | Description | |
|---|---|---|
| Methods | ||
| GetPackageFile(String, String) | Gets 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. |
|
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
| Type | Name | Description |
|---|---|---|
| System.String | directory | The directory where the package file is located. |
| System.String | packageName | The name of the package. |
Returns
| Type | Description |
|---|---|
| System.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
| Type | Name | Description |
|---|---|---|
| System.String | directory | The directory to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|