To mount a FTP server the shell-tool ftpfs_mount is used.
ftpfs_mount takes these arguments:
ftpfs_mount directory address username password option_list
directory is the directory where the file system should be mounted to.
You have to create this directory prior to mounting the file system.
E.g. "mkdir /boot/home/myftp".
address is the address of the FTP server.
username is the user name to log in to the FTP server (many ftp servers accept
"ftp" or "anonymous" for anonymous access of the FTP server, for
password you have to supply your email address).
password the password required to log in to the FTP server.
option_list a optional list of options.
Three kind of options are allowed: integer, boolean and string.
Options are separated by spaces.
To write a space in a string, use a "\" backslash infront of the space.
To write to backslash itself use two backslashes "\\".
These options are available:
port=n
the port number of the FTP server (default is 21).
cachesize=n
allows to limit the cache size to n MB (default is 10 MB).
deletecache=boolean
delete the cache when the file system is unmounted (default is true).
encoding=n
allows to set the encoding for directory entries (default is -1).
passiveconnection=boolean
either use passive (PASV) or active (PORT) transfer connection mode.
interruptibledl=boolean
are download interruptions allowed?
amigapartitions=string
partitions on an Amiga can be specified separated by "," comma.
The partition name does not include the colon ":".
volume=string
the volume name, default is "address_user".
Note:
in Terminal you have to escape the equal to ('=') operator with a
backslash ('\') or write the option list between quotes ("cachesize=10").
No white-spaces are allowed around the equal to operator.
Example (in Terminal window):
At first you create the mount point:
mkdir /boot/home/ftp
Then you mount the FTP server:
ftpfs_mount /boot/home/ftp server anonymous your_email_address
If the server could be mounted ftpfs_mount silently returns. You can
access the files on the server in /boot/home/ftp.
If anything went wrong, it prints an error message into the Terminal.