O'Reilly logo

Advanced Mac OS X Programming: The Big Nerd Ranch Guide by Mark Dalrymple

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12Files, Part 2: Directories, File Systems, and Links

Directories are the counterparts to files. Files are containers of information, while directories are containers of files. Directories can be nested inside of other directories, giving the hierarchical structure to the file system. The file system itself is conceptually built upon data blocks which store information, and inodes that store metadata. Both files and directories make use of data blocks and inodes. Links (hard links and symbolic links) allow a file or directory to appear in more than one location.

Directories

Compared to files, there is very little that can be done to directories. You can create them, remove them, and iterate through their contents.

Creation and destruction

int ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required