I am trying to create multiple files in a folder picked by user using UIDocumentPickerViewController
with UTType.Folder
.
I am able to create subfolders by appending to the NSUrl
and using NSFileManager
createDirectoryAtURL
, but there is no createFileAtURL
method, only createFileAtPath
. This should work for local files, but is there a general way to create a file in any picked location, even if it were a third-party cloud provider?