File size in Snow Leopard

前端 未结 4 1001
[愿得一人]
[愿得一人] 2021-02-11 08:16

I\'m trying to figure out how to convert a file\'s (or directory\'s) byte size into kilobytes, megabytes, gigabytes, etc... respectively according the file\'s or directory\'s si

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-11 08:37

    The file is 4 KB because that is the default block size of the HFS+ formatted drive. No file can be smaller than 4 KB. I suspect that is why your directory is a lot more than rounding up to 4 KB, since every smaller file in that directory is already "rounded up" to 4KB chunks, added together the difference may indeed be substantial.

    As for your 1,315,291,136-byte showing up as 1.33GB -- is it really a monolithic file? Many files in the finder, for example applications, are actually a directory of many smaller files abstracted in the finder. If you open a contextual menu on the file (right click) do you see "Show Package Contents" as an option?

提交回复
热议问题