---
title: shouldMoveFile
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phassetresourcecreationoptions/shouldmovefile
---

# shouldMoveFile

A Boolean value that determines whether Photos moves or duplicates files when creating an asset resource.

## Declaration

```swift
var shouldMoveFile: Bool { get set }
```

## Discussion

Discussion This property applies only when creating an asset resource with the addResource(with:fileURL:options:) method. If this value is true, Photos moves the specified file into the Photos library to create the asset resource, removing the original file after the asset has been successfully created. When using this option, Photos does not make an intermediary copy of the resource data, so no additional storage space is required. If this value is false (the default), Photos copies the contents of the original file into the Photos library. note: Attempting to move a file that is currently open or has hard links fails.
