Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know applications are just folder bundles - I assume specifically formatted, and some metadata. I did a copy of my iPhoto Library from another disk - at first it was just another folder, then once I ran iPhoto, it became special again.

What makes a folder a bundle? and how do i restore that metadata on a disk recovery?

share|improve this question
up vote 3 down vote accepted

The extension of the folder determines if the folder is a special folder. For example, apps have the extension .app, Kernel Extensions have the extensions .kext, etc.

Some folders, like the iPhoto Library, have extended attributes. They can be determined by running ls -@l in the parent directory of your folder. The attribute stores the type of the folder.

The easiest way to copy the attributes, in my personal opinion, is to use the ditto Terminal command to copy the files. It works just like cp, except that it also ensures that extended attributes are copied.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.