You can get this file size
NSError *attributesError = nil; NSDictionary *fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:URL error:&attributesError]; int fileSize = [fileAttributes fileSize];
So, you can possibly iterate over all the files in the folder and add the file sizes ... not sure if theres a direct way to get the size of the directory, also theres this SO message about it as well, you can find a solution here
To find the file creation date you can do
NSString *path = @""; NSDictionary* fileAttribs = [[NSFileManager defaultManager] attributesOfItemAtPath:path error:nil]; NSDate *result = [fileAttribs valueForKey:NSFileCreationDate];
Hope this helps
source share