![]() | DiskUtilities Class |
Namespace: DustProductions.Core
public static class DiskUtilities
The DiskUtilities type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | GetRootUnityFolderPath |
Finds the root folder for where this project is stored.
|
![]() ![]() | TryConvertToPossibleAssetPath |
Attempts to take a full path and find a folder with the name of the const NameOfAssetsFolder (Currently "Assets/").
Note: this will just look for the first instance of the name, if you nest your actual assets folder inside of another folder with the same name, I have no pity for you.
|
![]() ![]() | TryCopyDirectory(DirectoryInfo, DirectoryInfo, Boolean, String) |
Attempts to copy all the files in a directory from one place to another.
|
![]() ![]() | TryCopyDirectory(String, String, Boolean, String) |
Attempts to copy all the files in a directory from one place to another.
|
![]() ![]() | TryCopyFile(FileInfo, DirectoryInfo) |
Attempts to copy a file into another directory.
|
![]() ![]() | TryCopyFile(String, String) |
Attempts to copy a file into another directory.
|
![]() ![]() | TryDeleteFilesInDirectory(DirectoryInfo, Boolean) |
Used to easily clear a directory of its contents.
|
![]() ![]() | TryDeleteFilesInDirectory(String, Boolean) |
Used to easily clear a directory of its contents.
|
![]() ![]() | TryExecuteBatFile |
Attempt to run a batch file.
|
![]() ![]() | TryGetFilesInDirectory(DirectoryInfo, ListFileInfo, Boolean) |
Used to easily get all the files in a directory. This only gets the files, and does not include the folder structure.
|
![]() ![]() | TryGetFilesInDirectory(String, ListFileInfo, Boolean) |
Used to easily get all the files in a directory. This only gets the files, and does not include the folder structure.
|
Name | Description | |
---|---|---|
![]() ![]() | NameOfAssetsFolder |
A hacky way to find out where the Assets folder is, this needs to be refactored and replaced by Application.dataPath
|
![]() ![]() | PathFromRootToCSharpAssembly |
The relative path from the project folder to where Unity compiles the C# code into an assembly
|