Table of Contents

Class DirectoryHelper

Namespace
Stride.Core.Assets
Assembly
Stride.Core.Assets.dll

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 string

The directory where the package file is located.

packageName string

The 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 string

The directory to check.

Returns

bool

True if the given directory is the root directory of the repository, false otherwise.