mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 00:21:33 -07:00
fix crash in CleanupVersionsFolder
This commit is contained in:
parent
ba799962cc
commit
8e81983fee
@ -859,6 +859,12 @@ namespace Bloxstrap
|
|||||||
return;
|
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))
|
foreach (string dir in Directory.GetDirectories(Paths.Versions))
|
||||||
{
|
{
|
||||||
string dirName = Path.GetFileName(dir);
|
string dirName = Path.GetFileName(dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user