Exemplo n.º 1
0
 public override void Enter()
 {
     ES3.CopyFile(oldFilePath.Value, newFilePath.Value, GetSettings(), GetSettings());
 }
Exemplo n.º 2
0
    /// <summary>Creates a backup of a file.</summary>
    /// <remarks>A backup is created by copying the file and giving it a .bak extension.
    /// If a backup already exists it will be overwritten, so you will need to ensure that the old backup will not be required before calling this method.</remarks>
    /// <param name="settings">The settings we want to use to override the default settings.</param>
    public static void CreateBackup(ES3Settings settings)
    {
        var backupSettings = new ES3Settings(settings.path + backupFileSuffix, settings);

        ES3.CopyFile(backupSettings, settings);
    }