Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Size of a file on disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Size of a file on disk



See the documentation for - (NSDictionary *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error in NSFileManager.

The returned dictionary has a convenience method -fileSize.

Best,
Hank

On Aug 31, 2011, at 3:51 PM, Jon Sigman wrote:

> How does one determine the size of a file on disk using Cocoa?
> I've looked at NSFileManager but it doesn't seem to offer any
> methods for finding file attributes.
> OSX 10.6.8
> _______________________________________________
>
> 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
>

_______________________________________________

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

References: 
 >Size of a file on disk (From: Jon Sigman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.