Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    DirectoryHelper Class

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

    Helper class that contains methods to retrieve and manipulate SDK locations.

    System.Object → DirectoryHelper
    Derived from DirectoryHelper:

    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.

    | Improve this Doc View Source

    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

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


    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation