Class FileUtilities
A set of utilities for working with files.
Inherited Members
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. |