|
EDIA Core 0.6.0
A Unity XR toolbox for research
|
Static class to handle file IO. More...
Static Public Member Functions | |
| static string[] | GetAllFilenamesWithExtensionFrom (string subFolder, string extension) |
| Get all filenames with a certain extension from the applications given subfolder. | |
| static string[] | GetAllFilenamesFrom (string subFolder) |
| Get all filenames with a certain extension from the applications given subfolder. | |
| static string[] | GetAllSubFolders (string subFolder) |
| Retrieves all subfolder names from the specified subfolder. | |
| static bool | CopyDirectory (string sourceDirectory, string targetDirectory, string exclude) |
| Copies the contents of a source directory to a target directory. | |
| static bool | CopyDirectory (string sourceDirectory, string targetDirectory, string exclude, bool cleanCopy=false) |
| Copies the contents of a source directory to a target directory. | |
| static bool | CopyDirectory (string sourceDirectory, string targetDirectory) |
| Copies all contents from a source directory to a target directory. | |
| static string | ReadStringFromApplicationPathSubfolder (string subfolder, string fileName) |
| Reads the content of a file located in a specific subfolder of the application's path. | |
| static string | ReadStringFromApplicationPath (string fileName) |
| Reads a string from a file located in the application's root path. | |
| static bool | FileExists (string fileName) |
| Determines if a file exists at the specified application path. | |
| static bool | FolderExists (string folderName) |
| Determines if a folder exists at the specified application path. | |
| static bool | DoesConfigsFolderExist () |
| Determines if the configs folder exists in the application path. | |
| static string | ReadString (string fileName) |
| Tries to read the given text-based file. | |
| static void | CopyFileTo (string sourcePath, string filename, string destinationPath) |
| Copies a specified file from a source path to a destination path. | |
| static void | WriteString (string fileName, string data, bool overwrite) |
| Saves a text file to given filename and containts given data. | |
| static void | CreateFolder (string folderName) |
| Creates a folder in the application data directory. | |
| static string | GetCorrectPath () |
| Determines correct path depending on where the application is running on/in. | |
Static class to handle file IO.
|
inlinestatic |
Copies all contents from a source directory to a target directory.
| sourceDirectory | The path to the source directory. |
| targetDirectory | The path to the target directory. |
|
inlinestatic |
Copies the contents of a source directory to a target directory.
| sourceDirectory | The path of the directory to copy from. |
| targetDirectory | The path of the directory to copy to. |
| exclude | Specifies a file extension or pattern that should be excluded during the copy process. |
|
inlinestatic |
Copies the contents of a source directory to a target directory.
| sourceDirectory | The path of the directory to copy from. |
| targetDirectory | The path of the directory to copy to. |
| exclude | Specifies a file extension or pattern that should be excluded during the copy process. |
| cleanCopy | Indicates whether the target directory should be deleted before copying. |
|
inlinestatic |
Copies a specified file from a source path to a destination path.
| sourcePath | The directory in the source from which the file will be copied. |
| filename | The name of the file to copy. |
| destinationPath | The directory in the destination where the file will be copied to. |
|
inlinestatic |
Creates a folder in the application data directory.
Name of the file
|
inlinestatic |
Determines if the configs folder exists in the application path.
|
inlinestatic |
Determines if a file exists at the specified application path.
| fileName | The name of the file to check for existence. |
|
inlinestatic |
Determines if a folder exists at the specified application path.
| folderName | The name of the folder to check for existence. |
|
inlinestatic |
Get all filenames with a certain extension from the applications given subfolder.
Folder to scan
|
inlinestatic |
Get all filenames with a certain extension from the applications given subfolder.
Folder to scan
filter on specific file type, use * for all
|
inlinestatic |
Retrieves all subfolder names from the specified subfolder.
| subFolder | The parent folder to scan for subfolders. |
|
inlinestatic |
Determines correct path depending on where the application is running on/in.
|
inlinestatic |
Tries to read the given text-based file.
| fileName | Path to the file to read |
| ArgumentNullException | Thrown when fileName is null |
| IOException | Thrown when an I/O error occurs |
|
inlinestatic |
Reads a string from a file located in the application's root path.
| fileName | The name of the file to read from the application's root path. |
|
inlinestatic |
Reads the content of a file located in a specific subfolder of the application's path.
| subfolder | The subfolder within the application path where the file is located. |
| fileName | The name of the file to be read. |
|
inlinestatic |
Saves a text file to given filename and containts given data.
Name of the file
The data that needs to be written
Overwrite if filename exists.