Contents

FileManagerDelegate

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

Declaration

protocol FileManagerDelegate : NSObjectProtocol

Overview

The FileManagerDelegate protocol defines optional methods for managing operations involving the copying, moving, linking, or removal of files and directories. When you use an FileManager object to initiate a copy, move, link, or remove operation, the file manager asks its delegate whether the operation should begin at all and whether it should proceed when an error occurs.

The methods of this protocol accept either NSURL or NSString objects. The file manager always prefers methods that take an NSURL object over those that take an NSString object.

You should associate your delegate with a unique instance of the FileManager class, as opposed to the shared instance.

Topics

Moving an Item

Copying an Item

Removing an Item

Linking an Item

See Also

File system operations