Created
July 27, 2019 01:56
-
-
Save tochi/397d9a698133c947ab41d3127d0cf7f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)url { | |
NSError *error = nil; | |
BOOL success = [url setResourceValue: [NSNumber numberWithBool: YES] forKey: NSURLIsExcludedFromBackupKey | |
error: &error]; | |
if(!success){ | |
// Error | |
} | |
return success; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment