How do I create a directory in the ubiquity directory using a writing intent?

In creating a NSFileAccessIntent with the writingIntent method, why does NSFileCoordinator.WritingOptions not have an option for creating? I need to create a directory in the ubiquity directory. There is an intent for replacing and one for moving. Is this to say that to create a directory in the ubuquity directory I have to create it locally first and then move it to the ubiquity directory?

Answered by just.do.it in 332252022

From the docs of NSFilePresenter: "The

NSFileCoordinator
class coordinates the reading and writing of files and directories among multiple processes and objects in the same process."


I would say that for a directory that does not yet exist, there is nothing to coordinate. So you don't need a NSFileCoordinator at all. Just create it and that's it.


Dirk

Accepted Answer

From the docs of NSFilePresenter: "The

NSFileCoordinator
class coordinates the reading and writing of files and directories among multiple processes and objects in the same process."


I would say that for a directory that does not yet exist, there is nothing to coordinate. So you don't need a NSFileCoordinator at all. Just create it and that's it.


Dirk

Wow. I didn't think about that.

How do I create a directory in the ubiquity directory using a writing intent?
 
 
Q