TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.BackupIO Class Reference
+ Collaboration diagram for Terraria.ModLoader.BackupIO:

Classes

class  Player
 Responsible for archiving player backups. More...
 
class  World
 Responsible for archiving world backups. More...
 

Static Public Attributes

static bool archiveLock = false
 

Static Private Member Functions

static bool IsArchiveOlder (DateTime time, TimeSpan thresholdAge)
 
static string GetArchiveName (string name, bool isCloudSave)
 
static string TodaysBackup (string name, bool isCloudSave)
 
static bool TryGetTime (string file, out DateTime result)
 
static void RunArchiving (Action< ZipFile, bool, string > saveAction, bool isCloudSave, string dir, string name, string path)
 Run a given archiving task, which will archive to a backup .zip file Zip entries added will be compressed.
 
static void AddZipEntry (this ZipFile zip, string path, bool isCloud=false)
 Adds a new entry to the archive .zip file Will use the best compression level using Deflate Some files are already compressed and will not be compressed further.
 
static void DeleteOldArchives (string dir, bool isCloudSave, string name)
 Will delete old archive files Algorithm details:
 
static void DeleteArchive (string path)
 

Static Private Attributes

static readonly Regex dateRegex = new Regex("\\d+-\\d\\d*-\\d\\d*", RegexOptions.Compiled)
 

Detailed Description

Definition at line 14 of file BackupIO.cs.


The documentation for this class was generated from the following file: