I'd like to use Files.app
to copy a folder (e.g. from Dropbox or iCloud), then switch to my App and read the contents of this folder for further processing. I can't find a way though to get the actual data from UIPasteboard
. Calling loadObject
on the NSItemProvider
gives me an NSData
archive which I can unarchive and then get a (private) FPItem
, which implements <NSFileProviderItem>
, but what now? How can I actually request downloading the actual folder this item points to?
I've used one of my precious Technical Support Incidents (TSI) to have an Apple engineer give a statement.
The outcome is that at this point of time, copy'n'paste of a folder in Files.app
to your own app is not supported. If you want to import a folder, use a UIDocumentPickerViewController
.