FileKit icon indicating copy to clipboard operation
FileKit copied to clipboard

Is there a way to write files to icloud using file kit?

Open IgorMuzyka opened this issue 6 years ago • 2 comments

If yes then what the path that should be used and what changes are required for xcode project to support icloud on macOS

IgorMuzyka avatar Sep 11 '18 23:09 IgorMuzyka

I'm sure i can just use this as path "~/Library/Mobile Documents/com~apple~CloudDocs/" and asking a user for access to this directory. But was interested if maybe there is a better way?

IgorMuzyka avatar Sep 12 '18 15:09 IgorMuzyka

I think there is no utility method to do it in FileKit

We could add it by using https://developer.apple.com/documentation/foundation/filemanager/1411653-url

extension Path {
 public init?(ubiquityContainerIdentifier: URL) {
        // call the method with guar
        init(url: xxxx)
  }
}

phimage avatar Sep 17 '18 20:09 phimage