![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Protected Member Functions | |
| void | SCR_FileIOHelper () |
Static Protected Member Functions | |
| static bool | CreateDirectory (string absoluteDirectory) |
| static array< string > | FindFiles (string directoryPath, string extension) |
| static bool | Copy (string source, string destination, bool overwrite=true) |
| static bool | CopyFile (string sourceFile, string destinationFile) |
| static bool | CopyDirectory (string sourceDirectory, string destinationDirectory) |
| static bool | RenameFile (string sourceFile, string destinationFile) |
| static string | GetFileStringContent (string filePath, bool printWarning=true) |
| static array< ref SCR_FileInfo > | GetDirectoryContent (string directory, string extension="") |
| static array< string > | ReadFileContent (string filePath, bool printWarning=true) |
| static bool | WriteFileContent (string filePath, notnull array< string > lines) |
| static bool | AppendFileContent (string filePath, notnull array< string > lines) |
| static bool | IsValidFileName (string fileName) |
| static string | SanitiseFileName (string fileName) |
| static bool | IsWindowsBased () |
| static void | FindFilesCallbackMethod (string fileName, FileAttribute attributes=0, string filesystem=string.Empty) |
| static string | GetShortResourceName (ResourceName rn) |
Static Protected Attributes | |
| static const string | PATH_DELIMITER = SCR_StringHelper.SLASH |
| static const string | FORBIDDEN_FILENAME_CHARS_WINDOWS = "*/\<>:|?\t\r\n\"" |
| static const string | FORBIDDEN_FILENAME_CHARS_LINUX = SCR_StringHelper.SLASH |
| static const ref array< ref SCR_FileInfo > | FOUND_FILEINFOS = {} |
Definition at line 1 of file SCR_FileIOHelper.c.
|
protected |
|
inlinestaticprotected |
Write all lines in the file after its existing content Adds to the file if it exists, creates it otherwise
| [in] | filePath | relative or absolute |
| [in] | lines |
Definition at line 338 of file SCR_FileIOHelper.c.
|
inlinestaticprotected |
Copy source file to destination
| [in] | source | file to copy |
| [in] | destination | copy destination |
| [in] | overwrite | set to false to prevent an accidental overwrite |
Definition at line 75 of file SCR_FileIOHelper.c.
|
inlinestaticprotected |
Recursively copy a directory to another, existing or not. Overwrite is allowed so check before copying
| [in] | sourceDirectory | can be relative or absolute |
| [in] | destinationDirectory | can be relative or absolute |
Definition at line 132 of file SCR_FileIOHelper.c.
Copy source file to destination - creating the destination directory if needed
| [in] | sourceFile | |
| [in] | destinationFile |
Definition at line 113 of file SCR_FileIOHelper.c.
OBSOLETE - use FileIO.MakeDirectory instead
Create sub-directories in the proper order, circumventing a FileIO.MakeDirectory limitation
| [in] | absoluteDirectory | e.g C:/Arma4/Data/scripts/My/Sub/Directory |
Definition at line 15 of file SCR_FileIOHelper.c.
|
inlinestaticprotected |
| [in] | directoryPath | |
| [in] | extension |
Definition at line 61 of file SCR_FileIOHelper.c.
|
inlinestaticprotected |
Definition at line 469 of file SCR_FileIOHelper.c.
|
inlinestaticprotected |
| [in] | directory | the directory to browse |
| [in] | extension | the extension of files for which to look |
Definition at line 256 of file SCR_FileIOHelper.c.
|
inlinestaticprotected |
Get file content as one big string
| [in] | filePath | relative or absolute |
| [in] | printWarning | true to print warning on issue, false otherwise |
Definition at line 234 of file SCR_FileIOHelper.c.
|
inlinestaticprotected |
Strips the resource name of the path while preserving the GUID and file name
| [in] | resourceName |
Definition at line 482 of file SCR_FileIOHelper.c.
Get whether or not a file name is valid for the filesystem
| [in] | fileName | the file name to be sanitised - no file path accepted |
Definition at line 379 of file SCR_FileIOHelper.c.
|
inlinestaticprotected |
Definition at line 455 of file SCR_FileIOHelper.c.
|
inlinestaticprotected |
Get file content as array of lines
| [in] | filePath | relative or absolute |
| [in] | printWarning | true to print warning on issue, false otherwise |
Definition at line 272 of file SCR_FileIOHelper.c.
|
inlinestaticprotected |
Fake a renaming by copying then deleting the source file
| [in] | sourceFile | |
| [in] | destinationFile |
Definition at line 224 of file SCR_FileIOHelper.c.
Sanitise the provided file name (removes invalid characters depending on the current OS, directory information, etc)
| [in] | fileName | the file name to be sanitised - can take a file path that will be stripped |
Definition at line 410 of file SCR_FileIOHelper.c.
|
inlinestaticprotected |
Write all lines in the file, replacing all its content Overwrites the file if it exists
| [in] | filePath | relative or absolute |
| [in] | lines |
Definition at line 301 of file SCR_FileIOHelper.c.
|
staticprotected |
Definition at line 5 of file SCR_FileIOHelper.c.
|
staticprotected |
Definition at line 4 of file SCR_FileIOHelper.c.
|
staticprotected |
Definition at line 7 of file SCR_FileIOHelper.c.
|
staticprotected |
Definition at line 3 of file SCR_FileIOHelper.c.