• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Where are my bytes hiding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where are my bytes hiding?


  • Subject: Where are my bytes hiding?
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 05 May 2016 11:47:58 +0700

I just did:
> cd /Applications/Xcode.app/Contents/Developer/Documentation/DocSets/com.apple.adc.documentation.watchOS.docset/Contents/Resources/Tokens/C/tag/-
> ls -skl

There are 8 files. Finder → File → Get Info → Size: has for each: xxx bytes (Zero bytes on disk), where “xxx” is the same number as reported by “ls -skl”.

First question:
How does one achieve this phenomenal compression: 0 bytes on disk - but can expand to several thousand bytes? If this is not a creatio ex nihilo, then: where are these bytes hiding?

Second question:
Finder says about the containing folder: 11,239 bytes (33 KB on disk) for 9 items
11,239 = sum of TotalFileSizes of the 8 files in this folder.
But where do the “33 KB on disk” come from? 8 times “Zero bytes on disk” should be zero, shouldn’t it?

The reason for these questions:
I want to write an app, which counts (for a given folder) the number of bytes stored on disk.

Gerriet.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Where are my bytes hiding?
      • From: "Stephen J. Butler" <email@hidden>
  • Prev by Date: UIImagePickerController in popover broken on iOS 9
  • Next by Date: Re: Where are my bytes hiding?
  • Previous by thread: Re: UIImagePickerController in popover broken on iOS 9
  • Next by thread: Re: Where are my bytes hiding?
  • Index(es):
    • Date
    • Thread