mount(options:replyHandler:)
Mounts this volume, using the specified options.
Declaration
func mount(options: FSTaskOptions, replyHandler reply: @escaping @Sendable ((any Error)?) -> Void)func mount(options: FSTaskOptions) async throwsParameters
- options:
Options to apply to the mount. These can include security-scoped file paths. There are no defined options currently.
- reply:
A block or closure to indicate success or failure. If mounting fails, pass an error as the one parameter to the reply handler. If mounting succeeds, pass
nil. For anasyncSwift implementation, there’s no reply handler; simply return normally.
Discussion
FSKit calls this method as a signal that some process is trying to mount this volume. Your file system receives a call to activate(options:replyHandler:) prior to receiving any mount calls.