7

Currently I'm running this command:

curlftpfs user_name:password@hostname ~/mnt/sitename

It 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?

1 Answer 1

10

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/sitename

References

2
  • 1
    I used: @hostname:./public_html
    – user4035
    Commented Jan 21, 2015 at 6:03
  • 3
    In v0.9.2, I neede to use : @hostname://var/www/public_html ! Made me a lot of time to find it. For some reason @hostname:/var/www/public_html didnt't worked, curlftpfs tried to go to var dir, that doesn't exists, and returned this incorrect error: Error connecting to ftp: Server denied you to change to the given directory
    – brunetton
    Commented Jan 12, 2018 at 22:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .