Skip to content

Commit

Permalink
add logging related to downloads folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bluepilledgreat committed Oct 27, 2024
1 parent aab9e15 commit 4b05557
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Bloxstrap/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4b05557

Please sign in to comment.