diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 5578fe2..bfde105 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -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);