On Apr 21, 2013, at 5:13 PM, Scott Crick <[email protected]> wrote:
> On Apr 20, 2013, at 8:21 PM, Scott Crick <[email protected]> > 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 KB. If I >> divide it by 1000, I get 331 KB. Neither of these is what the Finder is >> reporting—339 KB. >> >> Is there a different function I should be using? I need to get the size as >> it's reported in the Finder. >> >> I would appreciate any help on this one. > > I think I have figured this out. > > I didn't realize there was also a FolderItem.LogicalFileTotalLengthMBS > function. When I use this function I am getting the same sizes as reported by > the Finder. Makes sense. The Finder will display the amount of space a file takes up on disk - including the padding to fill out the smallest block size on the volume regards, Steve _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
