This content has been marked as final. Show 6 replies
Hmm - I guess I never got that far down the doc page - duh is right .
1 person found this helpful
I see John has already answered the question.
A couple of things to remember, depending upon your use case:
- if you do try to use df file , you probably want to use df -k file to get the size in kb rather than blocks
- if you are trying to get the size of a removable volume under OS/X, you need to test the particular volume has been mounted first otherwise LrFileUtils.volumeAttributes() will return the volume size for the root directory rather than for the specific volume. I've been caught out by that before. I normally use LrFileUtils.exists() to test an expected file is present before testing the volume attributes.
Thanks Matt .