---
title: NSFileManagerResumeSyncBehavior
framework: foundation
role: symbol
role_heading: Enumeration
path: foundation/nsfilemanagerresumesyncbehavior
---

# NSFileManagerResumeSyncBehavior

The behaviors the file manager can apply to resolve conflicts when resuming a sync.

## Declaration

```swift
enum NSFileManagerResumeSyncBehavior
```

## Overview

Overview You use this type when calling resumeSyncForUbiquitousItem(at:with:completionHandler:) to resume synchronizing. In most situations, the NSFileManagerResumeSyncBehavior.preserveLocalChanges behavior is the best choice to avoid risk of data loss.

## Topics

### Identifying sync behaviors

- [NSFileManagerResumeSyncBehavior.preserveLocalChanges](foundation/nsfilemanagerresumesyncbehavior/preservelocalchanges.md)
- [NSFileManagerResumeSyncBehavior.afterUploadWithFailOnConflict](foundation/nsfilemanagerresumesyncbehavior/afteruploadwithfailonconflict.md)
- [NSFileManagerResumeSyncBehavior.dropLocalChanges](foundation/nsfilemanagerresumesyncbehavior/droplocalchanges.md)

### Working with raw values

- [init(rawValue:)](foundation/nsfilemanagerresumesyncbehavior/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Controlling file provider synchronization

- [NSFileManagerSupportedSyncControls](foundation/nsfilemanagersupportedsynccontrols.md)
- [pauseSyncForUbiquitousItem(at:completionHandler:)](foundation/filemanager/pausesyncforubiquitousitem(at:completionhandler:).md)
- [resumeSyncForUbiquitousItem(at:with:completionHandler:)](foundation/filemanager/resumesyncforubiquitousitem(at:with:completionhandler:).md)
- [fetchLatestRemoteVersionOfItem(at:completionHandler:)](foundation/filemanager/fetchlatestremoteversionofitem(at:completionhandler:).md)
- [NSFileVersion](foundation/nsfileversion.md)
- [uploadLocalVersionOfUbiquitousItem(at:withConflictResolutionPolicy:completionHandler:)](foundation/filemanager/uploadlocalversionofubiquitousitem(at:withconflictresolutionpolicy:completionhandler:).md)
- [NSFileManagerUploadLocalVersionConflictPolicy](foundation/nsfilemanageruploadlocalversionconflictpolicy.md)
