diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 6b73caa4..a4d97a69 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -653,10 +653,16 @@ private async Task UpgradeRoblox() else SetStatus(Strings.Bootstrapper_Status_Upgrading); + bool downloadsExistBefore = Directory.Exists(Paths.Downloads); + Directory.CreateDirectory(Paths.Base); Directory.CreateDirectory(Paths.Downloads); Directory.CreateDirectory(Paths.Roblox); + bool downloadsExistAfter = Directory.Exists(Paths.Downloads); + + App.Logger.WriteLine(LOG_IDENT, $"Download folder existence information: before: {downloadsExistBefore}, after: {downloadsExistAfter}"); + if (Directory.Exists(AppData.Directory)) { if (Directory.Exists(AppData.OldDirectory)) @@ -1107,6 +1113,9 @@ private async Task DownloadPackage(Package package) int totalBytesRead = 0; + if (!Directory.Exists(Paths.Downloads)) + App.Logger.WriteLine(LOG_IDENT, "Downloads folder has disappeared... where'd it go?"); + try { var response = await App.HttpClient.GetAsync(packageUrl, HttpCompletionOption.ResponseHeadersRead, _cancelTokenSource.Token);