Skip to content

Commit f41e7f7

Browse files
fix: failure to update with inner folders
We still have the issue where the previous install folder is locked while the updating application in a different folder is running. (don't ask I haven't figured out why yet) So we can recursively delete the inner folders just not the outermost one.
1 parent e886560 commit f41e7f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Nullinside.Api.Common/Desktop/GitHubUpdateManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ await Retry.Execute(() => {
167167
File.Delete(file);
168168
}
169169

170+
foreach (var directory in Directory.GetDirectories(folder)) {
171+
Directory.Delete(directory, true);
172+
}
173+
170174
return Task.FromResult(true);
171175
}, 30, waitTime: TimeSpan.FromSeconds(1));
172176
}

0 commit comments

Comments
 (0)