Starts the process of unmounting the specified volume.
- macOS 10.11+
A file URL specifying the volume to be unmounted.
A bitmask of
NSFilethat you can use to customize the unmount operation’s behavior.
Manager Unmount Options
A block executed when the unmount operation completes. The block receives an
NSErrorparameter which is
nilif unmounting was successful. Otherwise, it indicates why unmounting failed.
If the volume is encrypted, it is relocked after being unmounted.