Currently I'm running this command:curlftpfs user_name:password@hostname ~/mnt/sitenameIt mounts the contents of main ftp dir on server to ~/mnt/sitename. But on server I need to open public_html directory every time. Is it possible to mount /public_html directory from server directly to the mountpoint?
Is it possible to mount a subdirectory in ftp server via curlftpfs
mount;ftp
You could specify the path on the FTP server after hostname part in the original command of curlftpfs.For example, you could have your command as,curlftpfs user_name:password@hostname:/var/www/public_html ~/mnt/sitenameReferenceshttps://askubuntu.com/a/323215https://askubuntu.com/a/200812