Created
May 6, 2014 15:23
-
-
Save taylanpince/4ddd7f1b1e20fd0eee23 to your computer and use it in GitHub Desktop.
Mark file as "Do Not Backup" in iOS
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
#include <sys/xattr.h> | |
const char *filePath = [[storeURL path] fileSystemRepresentation]; | |
const char *attrName = "com.apple.MobileBackup"; | |
u_int8_t attrValue = 1; | |
setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment