File System

Create, read, write, and examine files and folders in the file system.

Topics

File System Operations

NSFileManager

An object that provides a convenient interface to the contents of the file system.

NSFileManagerDelegate

The interface a file manager's delegate uses to intervene during operations or if an error occurs.

Managed File Access

NSFileHandle

An object-oriented wrapper for a file descriptor.

NSFileSecurity

A stub class that encapsulates security information about a file.

NSFileVersion

A snapshot of a file at a specific point in time.

NSFileWrapper

A representation of a node (a file, directory, or symbolic link) in the file system.

Shared Files

NSFilePresenter

The interface a file coordinator uses to inform an object presenting a file about changes to that file made elsewhere in the system.

NSFileAccessIntent

The details of a coordinated-read or coordinated-write operation.

NSFileCoordinator

An object that coordinates the reading and writing of files and directories among file presenters.

Errors

File System Error Codes

Recognize common error codes generated by file system operations.

See Also

Files and Data Persistence

Archives and Serialization

Convert objects and values to and from property list, JSON, and other flat binary representations.

Preferences

Persistently store domain-scoped pieces of information used to configure your app.

Spotlight

Search for files and other items on the local device, and index your app's content for searching.

iCloud

Manage files and key-value data that are automatically synchronized among a user's iCloud devices.