Skip to content

Commit 885afcc

Browse files
Remove archive if compression fails
1 parent f161f55 commit 885afcc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Files.App/Helpers/ZipHelpers.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public static async Task<bool> CompressMultipleToArchive(string[] sourceFolders,
6363
catch (Exception ex)
6464
{
6565
App.Logger.Warn(ex, $"Error compressing folder: {archive}");
66+
NativeFileOperationsHelper.DeleteFileFromApp(archive);
6667
noErrors = false;
6768
}
6869
return noErrors;

0 commit comments

Comments
 (0)