add comment

This commit is contained in:
Geoffrey Goh
2016-02-05 17:46:16 -08:00
parent 132bf00627
commit 038112edc9
2 changed files with 4 additions and 2 deletions

View File

@@ -229,6 +229,8 @@ NSString * const UnzippedFolderName = @"unzipped";
NSMutableDictionary * mutableUpdatePackage = [updatePackage mutableCopy];
if (isZip) {
if ([[NSFileManager defaultManager] fileExistsAtPath:unzippedFolderPath]) {
// This removes any unzipped download data that could have been left
// uncleared due to a crash or error during the download process.
[[NSFileManager defaultManager] removeItemAtPath:unzippedFolderPath
error:&error];
if (error) {