BattleInfoPlugin.Models.Settings.PluginSettings.TryMoveFile C# (CSharp) Méthode

TryMoveFile() private static méthode

private static TryMoveFile ( string oldPath, string newPath ) : void
oldPath string
newPath string
Résultat void
        private static void TryMoveFile(string oldPath, string newPath)
        {
            if (File.Exists(oldPath) && !File.Exists(newPath))
                File.Move(oldPath, newPath);
        }