Last active
August 29, 2015 13:56
-
-
Save rustyshelf/8855375 to your computer and use it in GitHub Desktop.
This file contains 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)__isValidResumeData:(NSData *)data{ | |
if (!data || [data length] < 1) return NO; | |
NSError *error; | |
NSDictionary *resumeDictionary = [NSPropertyListSerialization propertyListWithData:data options:NSPropertyListImmutable format:NULL error:&error]; | |
if (!resumeDictionary || error) return NO; | |
NSString *localFilePath = [resumeDictionary objectForKey:@"NSURLSessionResumeInfoLocalPath"]; | |
if ([localFilePath length] < 1) return NO; | |
return [[NSFileManager defaultManager] fileExistsAtPath:localFilePath]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment