Still looking for a way to mount a remote FTP volume from within my macOS app.
I have just tried the Terminal command
open ftp://user:password @ server.domain.com/
(without those 2 spaces) to mount my FTP volume. It works but it's async so it doesn't return a value (mounted or not). And I don't know how to invoke a callback when the task is done. Also I must define the username and password within the address and it's not a good practice.
Recap
FSMountServerVolumeSync is deprecated…
NetFSMountURLSync asks for a share and I cannot use it.
The Terminal command "open" is async so it does't return a value nor it invokes a callback.
mount_ftp needs for an existing directory as a mount point as e.g. /Volumes/MyFTPDisk but I can't create a directory within the /Volumes folder with createDirectoryAtPath:
For now I stay stuck on the deprecated point 1. Too bad.
Topic:
App & System Services
SubTopic:
Core OS
Tags: