mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-10 15:25:42 -07:00
fix crash in CleanupVersionsFolder
This commit is contained in:
parent
ba799962cc
commit
8e81983fee
@ -859,6 +859,12 @@ namespace Bloxstrap
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Directory.Exists(Paths.Versions))
|
||||
{
|
||||
App.Logger.WriteLine(LOG_IDENT, "Versions directory does not exist, skipping cleanup.");
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (string dir in Directory.GetDirectories(Paths.Versions))
|
||||
{
|
||||
string dirName = Path.GetFileName(dir);
|
||||
|
Loading…
Reference in New Issue
Block a user