Re: [MBS] Matching File Size as Shown in Finder

2013-04-21 Thread Marnaud
Le 21 avr. 2013 à 7:49, Christian Schmitz a écrit: On 21.04.2013, at 03:21, Scott Crick li...@searchwaresolutions.com wrote: When I use FolderItem.PhysicalFileTotalLengthMBS, the size of this file is returned as 331776 bytes. When I divide this by 1024, I get 324 KB. If I divide it by

Re: [MBS] Matching File Size as Shown in Finder

2013-04-21 Thread Scott Crick
On Apr 20, 2013, at 8:21 PM, Scott Crick li...@searchwaresolutions.com wrote: For example, I have a PDF file that, in the Finder, shows as being 339 KB When I use FolderItem.PhysicalFileTotalLengthMBS, the size of this file is returned as 331776 bytes. When I divide this by 1024, I get 324

Re: [MBS] Matching File Size as Shown in Finder

2013-04-21 Thread Tim Jones
From what I see in my shell tests, it appears that Finder reports the ls -leO size divided by 1000 (for K) divided by 1000 again for M divided by 1000 again for G and then rounds up to 2 decimal places. for example, $ ls -leO /Volumes/VD\ 1/OSX-10.8.iso -rw-r--r-- 1 tjones staff -