Does expo media library saveToLibraryAsync() hardlink or does it copy the actual file?

Please provide the following:

  1. SDK Version: 49
  2. Platforms(Android/iOS/web/all): iOS

When a user downloads a file it first gets saved to documentsDir. If the mime type is image, I then save it to photoLibrary using saveToLibrary().
Now my question: Should I delete the original file in the documentsDir to save the users space, or is the picture simply hardlinked and doesn’t take up any additional space?
It would be best IMO if the user has the picture both in the Photo Gallery but also the file still available in the documents dir. But that’s only viable if the file is hardlinked.

Any help or comments are appreciated!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.