This document describes the various Foundation methods and functions for manipulating files and directories.
This document contains the following articles:
“Portable File-System Operations” explains the general approach for composing paths to locations in the file system.
“HFS File Types” describes the APIs that allow a Cocoa application to retrieve and create HFS type and creator codes.
“File Manager” describes the class that enables you to perform many generic file-system operations.
“File Handle” describes the class that provides a wrapper for accessing open files or communications channels.
“Enumerating A Directory” describes how to retrieve the contents of a directory using an NSDirectoryEnumerator
object.
“Resolving Aliases” describes how to resolve aliases in a file path.
“Locating Directories on the System” explains how to use both Cocoa and Carbon functions to compose paths used in file-system operations.
© 1997, 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-03-05)