Created
March 8, 2012 22:24
-
-
Save flandy84/2003852 to your computer and use it in GitHub Desktop.
iOS "skip backup" file/directory flag since ios 5.1
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{ | |
return [URL setResourceValue:[NSNumber numberWithBool:YES] forKey:NSURLIsExcludedFromBackupKey error:nil]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment