Table of Contents
Class replacing the original functionality of FileIOUtil before BTD6 update 33.0
public static class FileIOHelper
Inheritance System.Object FileIOHelper
JSON Serializer settings used for methods in this class
public static readonly JsonSerializerSettings Settings;
Il2CppNewtonsoft.Json.JsonSerializerSettings
Same as the original FileIOUtil.sandboxRoot, INCLUDES A SLASH AT THE END
public static string sandboxRoot { get; }
Recursively copies all files and subdirectories from the source directory
to the destination directory. Creates directories as needed.
public static void CopyDirectory(string sourceDir, string destinationDir, bool overwrite=true);
sourceDir
System.String
The path to the directory to copy from.
destinationDir
System.String
The path to the directory to copy to.
overwrite
System.Boolean
If true, existing files in the destination will be overwritten.
Same as the original FileIOUtil.GetSandboxPath(), INCLUDES A SLASH AT THE END
public static string GetSandboxPath();
Same as the original FileIOUtil.LoadFile
public static string LoadFile(string fileName);
fileName
System.String
File name within the sandbox directory
Same as the original FileIOUtil.LoadObject
public static T LoadObject<T>(string fileName)
where T : Object;
T
fileName
System.String
File name within the sandbox directory
Same as the original FileIOUtil.SaveFile
public static void SaveFile(string fileName, string text);
fileName
System.String
File name within the sandbox directory
text
System.String
Text file contents to save
Saves an il2cpp object directly to the sandbox path like the original FileIOUtil.SaveObject
Will also create subdirectories as needed to save the file
public static void SaveObject(string fileName, Object data);
fileName
System.String
Name of file, extension included
data
Il2CppSystem.Object