Hello,
I am currently developing an iOS software that share files between devices through iCloud Documents.
1. „Device 1” sends a file to iCloud:
FileManager.default.setUbiquitous(true, itemAt: file, destinationURL: url)
2. „Device 2” detects the appearance of a file and then downloads it:
FileManager.default.startDownloadingUbiquitousItem(at: url!)
I would like to avoid the situation in which the „Device 1” will delete the file while it is being downloaded by the „Device 2”.
Is there any way to check on the „Device 1” that the file is being downloaded by the „Device 2”, or block the possibility of deleting the file while downloading?