Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // The size of a file.
- + (unsigned int)fileSize: (NSString *)_path {
- NSString * destinationPath;
- if ( ![KSFFile makeDocPath:_path Result:&destinationPath] ) { return 0; }
- NSDictionary * dict = [[NSFileManager defaultManager] attributesOfItemAtPath:destinationPath error:nil];
- if ( !dict ) { return 0; }
- NSNumber * size = [dict objectForKey:@"NSFileSize"];
- unsigned int retSize = [size intValue];
- return retSize;
- }
Add Comment
Please, Sign In to add comment