NSFileManager object sends this message to a handler immediately before attempting to move, copy, rename, or delete, or before attempting to link to a given path.
- iOS 2.0–2.0Deprecated
- macOS 10.0–10.5Deprecated
- tvOS 9.0–9.0Deprecated
- watchOS 2.0–2.0Deprecated
NSFileManager object that sent this message.
The path or a file or directory that
manager is about to attempt to move, copy, rename, delete, or link to.
You can implement this method in your handler to monitor file operations.
Copies the directory or file specified in a given path to a different location in the file system identified by another path.
Moves the directory or file specified by a given path to a different location in the file system identified by another path.
Deletes the file, link, or directory (including, recursively, all subdirectories, files, and links in the directory) identified by a given path.
Returns a dictionary that describes the attributes of the mounted file system on which a given path resides.
NSFileManager object sends this message to its handler for each error it encounters when copying, moving, removing, or linking files or directories.