<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAssetResourceCreationOptions/shouldMoveFile",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAssetResourceCreationOptions(py)shouldMoveFile"
  },
  "title" : "shouldMoveFile"
}
-->

# shouldMoveFile

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

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

## Discussion

This property applies only when creating an asset resource with the [`addResource(with:fileURL:options:)`](/documentation/Photos/PHAssetCreationRequest/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)