Help : File size questions
Help : File size questions
- Subject: Help : File size questions
- From: Peter <email@hidden>
- Date: Thu, 15 Aug 2002 22:28:44 +0800
Hello,
Recently stumble a very big file (about 3.3 GB), however I keep getting
incorrect file size. I supposed I have hit 32 bit signed int limit. By
looking the snippet below, how do I over come this problem.
fattrs = [fileMgr fileAttributesAtPath:pathStr traverseLink:YES];
filesize = [[fattrs objectForKey:NSFileSize] intValue];
A few questions,
1) On the doc. NSFileSize returns NSNumber, what is biggest number will
it hold ?
2) What is the biggest file size for HFS+ and UFS ?
3) What about stat() function, does it return file size value greater
than 4 billion ( bigger than unsigned long) ?
Thanks.
Peter.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.