Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: How to get a folder's size in OSX



Permlink Replies: 1 - Last Post: Dec 21, 2016 2:42 PM Last Post By: Jay Eisenstock Threads: [ Previous | Next ]
Zijun Chen

Posts: 1
Registered: 5/5/14
How to get a folder's size in OSX
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 27, 2014 11:27 PM
I know how to do this in Windows but not sure how to make this in OSX
Jay Eisenstock

Posts: 40
Registered: 1/28/10
Re: How to get a folder's size in OSX
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 21, 2016 2:42 PM   in response to: Zijun Chen in response to: Zijun Chen
Zijun Chen wrote:
I know how to do this in Windows but not sure how to make this in OSX

I know you posted this awhile ago but you could use NSFileManager with the NSFileSize attribute. You can use this approach for determining the size of both folders and files. If this is what you need, I can send you some code.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02