1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 10:51:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Revert "Exclude backup"

This reverts commit 2d805fb38e.
This commit is contained in:
sunnylqm
2020-08-08 21:09:15 +08:00
parent 48693e3b45
commit a4a372f17e

View File

@@ -24,21 +24,6 @@
return self;
}
- (BOOL)addSkipBackupAttributeToItemAtPath:(NSString *) filePathString
{
NSURL* URL= [NSURL fileURLWithPath: filePathString];
assert([[NSFileManager defaultManager] fileExistsAtPath: [URL path]]);
NSError *error = nil;
BOOL success = [URL setResourceValue: [NSNumber numberWithBool: YES]
forKey: NSURLIsExcludedFromBackupKey error: &error];
if(!success){
NSLog(@"Error excluding %@ from backup %@", [URL lastPathComponent], error);
}
return success;
}
- (BOOL)createDir:(NSString *)dir
{
__block BOOL success = false;
@@ -63,7 +48,7 @@
return;
}
});
[self addSkipBackupAttributeToItemAtPath:dir];
return success;
}