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
object
DirectoryHelper

Methods

FindRootDevDirectory(string)

Walks up from directory looking for the repository root (the directory containing build\Stride.slnx). Returns it, or null if the path is not inside a Stride source checkout.

public static string? FindRootDevDirectory(string directory)

Parameters

directory string

The directory to start the search from.

Returns

string

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.