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.