Click or drag to resize

DiskUtilities Methods

The DiskUtilities type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetRootUnityFolderPath
Finds the root folder for where this project is stored.
Public methodStatic memberTryConvertToPossibleAssetPath
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.
Public methodStatic memberTryCopyDirectory(DirectoryInfo, DirectoryInfo, Boolean, String)
Attempts to copy all the files in a directory from one place to another.
Public methodStatic memberTryCopyDirectory(String, String, Boolean, String)
Attempts to copy all the files in a directory from one place to another.
Public methodStatic memberTryCopyFile(FileInfo, DirectoryInfo)
Attempts to copy a file into another directory.
Public methodStatic memberTryCopyFile(String, String)
Attempts to copy a file into another directory.
Public methodStatic memberTryDeleteFilesInDirectory(DirectoryInfo, Boolean)
Used to easily clear a directory of its contents.
Public methodStatic memberTryDeleteFilesInDirectory(String, Boolean)
Used to easily clear a directory of its contents.
Public methodStatic memberTryExecuteBatFile
Attempt to run a batch file.
Public methodStatic memberTryGetFilesInDirectory(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.
Public methodStatic memberTryGetFilesInDirectory(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.
Top
See Also