diff options
Diffstat (limited to 'modules/mono/editor/GodotTools/GodotTools.Core/FileUtils.cs')
| -rw-r--r-- | modules/mono/editor/GodotTools/GodotTools.Core/FileUtils.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools.Core/FileUtils.cs b/modules/mono/editor/GodotTools/GodotTools.Core/FileUtils.cs index 85760a3705..e1ccf0454a 100644 --- a/modules/mono/editor/GodotTools/GodotTools.Core/FileUtils.cs +++ b/modules/mono/editor/GodotTools/GodotTools.Core/FileUtils.cs @@ -19,7 +19,10 @@ namespace GodotTools.Core } if (attempt > maxAttempts + 1) - return; + { + // Overwrite the oldest one + backupPath = backupPathBase; + } File.Copy(filePath, backupPath, overwrite: true); } |
