mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Language File Updates
Fixed error when deleting from list while iterating
This commit is contained in:
parent
4672281a52
commit
a2e1afb4e0
12 changed files with 506 additions and 85 deletions
|
|
@ -62,7 +62,7 @@ namespace ServerManagerTool.Common.Utils
|
|||
{
|
||||
Debug.WriteLine("Deleting old config backup files started...");
|
||||
|
||||
var filesToDelete = new DirectoryInfo(backupPath).GetFiles(backupFileFilter).Where(f => f.LastWriteTime < backupDateFilter);
|
||||
var filesToDelete = new DirectoryInfo(backupPath).GetFiles(backupFileFilter).Where(f => f.LastWriteTime < backupDateFilter).ToArray();
|
||||
foreach (var fileToDelete in filesToDelete)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue