Re: Size of a file on disk
Re: Size of a file on disk
- Subject: Re: Size of a file on disk
- From: Andy Lee <email@hidden>
- Date: Wed, 31 Aug 2011 19:32:39 -0400
On Aug 31, 2011, at 7:27 PM, Kyle Sluder wrote:
> On Wed, Aug 31, 2011 at 4:21 PM, dct <email@hidden> wrote:
>> Jon
>>
>> Or, knowing the path, you might try using NSFileHandle :
>>
>> NSFileHandle *hndl = [NSFileHandle fileHandleForReadingAtPath:path];
>> long long lngth = [hndl seekToEndOfFile];
>>
>> This gets you the length in bytes.
>
> And loads the entire file into memory!!
Does it? I didn't think seek loaded anything, and it was just for random access.
--Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden