I am looking for a way (the fastest, working for both files and directory and accurate) to get the size of disk (not the file size) of a file or directory, using either:
– BSD functions
– Carbon functions
– Cocoa functions
Thanks !
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have a file URL, you can use -[NSURL resourceValuesForKeys:error:] to get these values: