tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.Utilities.FileUtilities Class Reference

Static Public Member Functions

static void Copy (string source, string destination, bool cloud, bool overwrite=true)
static void CopyFolder (string sourcePath, string destinationPath)
static bool CopyToLocal (string cloudPath, string localPath)
static void Delete (string path, bool cloud, bool forceDeleteFile=false)
static bool Exists (string path, bool cloud)
static string GetFileName (string path, bool includeExtension=true)
static int GetFileSize (string path, bool cloud)
static string GetFullPath (string path, bool cloud)
static string GetParentFolderPath (string path, bool includeExtension=true)
static void Move (string source, string destination, bool cloud, bool overwrite=true, bool forceDeleteSourceFile=false)
static bool MoveToCloud (string localPath, string cloudPath)
static bool MoveToLocal (string cloudPath, string localPath)
static void ProtectedInvoke (Action action)
static void Read (string path, byte[] buffer, int length, bool cloud)
static byte[] ReadAllBytes (string path, bool cloud)
static void RemoveReadOnlyAttribute (string path)
static void Write (string path, byte[] data, int length, bool cloud)
static void WriteAllBytes (string path, byte[] data, bool cloud)