Enumeration

NSFileManagerItemReplacementOptions

Options for specifying the behavior of file replacement operations.

Declaration

typedef enum NSFileManagerItemReplacementOptions : NSUInteger {
    ...
} NSFileManagerItemReplacementOptions;

Overview

Topics

Using File Replacement Options

NSFileManagerItemReplacementUsingNewMetadataOnly

Only metadata from the new item is used, and metadata from the original item isn’t preserved (default).

NSFileManagerItemReplacementWithoutDeletingBackupItem

The backup item remains in place after a successful replacement.

See Also

Replacing Items

- replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:

Replaces the contents of the item at the specified URL in a manner that ensures no data loss occurs.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software