mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-14 01:54:45 +08:00
add comment
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user