View Single Post
Old 07-30-2007, 11:04 PM   #14 (permalink)
Talking BlackBerry Encyclopedia
Spectral's Avatar
Join Date: May 2007
Location: Houston, TX
Model: 8100
PIN: 23FA9743
Carrier: T-Mobile
Posts: 337
Post Thanks: 0
Thanked 0 Times in 0 Posts

Originally Posted by rivviepop View Post
For the filesize entry, make sure you use the "bytes on disk" property in Windows (ls -l in linux/mac).
Actually, you're supposed to use "Size" rather than "Size on disk". The on disk number shows you how many bytes the file uses, rounded up to the full cluster size, which depends on your filesystem.

A file that's 32770 bytes will show as 65536 bytes on disk with a 32KB cluster size, but only 33280 bytes on disk with a 512 byte cluster size.

If you are using NTFS compression or sparse files, then the "on disk" number will show you the size of the compressed/sparse file, complicating matters further.
Offline   Reply With Quote