Terraria v1.4.4.9
Terraria source code documentation
|
Static Public Member Functions | |
static bool | Exists (string path, bool cloud) |
static void | Delete (string path, bool cloud, bool forceDeleteFile=false) |
static string | GetFullPath (string path, bool cloud) |
static void | Copy (string source, string destination, bool cloud, bool overwrite=true) |
static void | Move (string source, string destination, bool cloud, bool overwrite=true, bool forceDeleteSourceFile=false) |
static int | GetFileSize (string path, bool cloud) |
static void | Read (string path, byte[] buffer, int length, bool cloud) |
static byte[] | ReadAllBytes (string path, bool cloud) |
static void | WriteAllBytes (string path, byte[] data, bool cloud) |
static void | Write (string path, byte[] data, int length, bool cloud) |
static void | RemoveReadOnlyAttribute (string path) |
static bool | MoveToCloud (string localPath, string cloudPath) |
static bool | MoveToLocal (string cloudPath, string localPath) |
static bool | CopyToLocal (string cloudPath, string localPath) |
static string | GetFileName (string path, bool includeExtension=true) |
static string | GetParentFolderPath (string path, bool includeExtension=true) |
static void | CopyFolder (string sourcePath, string destinationPath) |
static void | ProtectedInvoke (Action action) |
Static Private Attributes | |
static Regex | FileNameRegex = new Regex("^(?<path>.*[\\\\\\/])?(?:$|(?<fileName>.+?)(?:(?<extension>\\.[^.]*$)|$))", RegexOptions.IgnoreCase | RegexOptions.Compiled) |
Definition at line 10 of file FileUtilities.cs.