BattleInfoPlugin.Models.Settings.PluginSettings.TryMoveFile C# (CSharp) Метод

TryMoveFile() приватный статический Метод

private static TryMoveFile ( string oldPath, string newPath ) : void
oldPath string
newPath string
Результат void
        private static void TryMoveFile(string oldPath, string newPath)
        {
            if (File.Exists(oldPath) && !File.Exists(newPath))
                File.Move(oldPath, newPath);
        }