mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class FileUtilities

    A set of utilities for working with files.

    Inheritance
    Object
    FileUtilities
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public static class FileUtilities

    Methods

    FindFilesInAssets(String)

    Locates the files that match the specified name within the Assets folder structure.

    Declaration
    public static FileInfo[] FindFilesInAssets(string fileName)
    Parameters
    Type Name Description
    String fileName

    The name of the file to locate (ex: "TestFile.asmdef")

    Returns
    Type Description
    FileInfo[]

    Array of FileInfo objects representing the located file(s).

    FindFilesInPackageCache(String)

    Locates the files that match the specified name within the package cache folder structure.

    Declaration
    public static FileInfo[] FindFilesInPackageCache(string fileName)
    Parameters
    Type Name Description
    String fileName

    The name of the file to locate (ex: "TestFile.asmdef")

    Returns
    Type Description
    FileInfo[]

    Array of FileInfo objects representing the located file(s).

    GetPackageCache()

    Gets the package cache folder of this project.

    Declaration
    public static DirectoryInfo GetPackageCache()
    Returns
    Type Description
    DirectoryInfo

    A DirectoryInfo object that describes the package cache folder.

    In This Article
    • Methods
      • FindFilesInAssets(String)
      • FindFilesInPackageCache(String)
      • GetPackageCache()
    Back to top Generated by DocFX