SSH FTP server.
This module implements an SFTP server.
Types:
Port = integer()
Addr = string()
Options = [{Option, Value}]
Starts an SFTP server on the given port. The server listens
for connection of an SFTP client.
Options are:
-
{cwd, String}
-
Sets the initial current working directory for the
server.
-
{file_handler, CallbackModule}
-
Determines which module to call for communicating with
the file server. Default value is ssh_sftpd_file that uses the
file and filelib API:s to access the standard OTP file
server. This option may be used to plug in the use of
other file servers.
-
{root, String}
-
Sets the root for the file system. The given root will be
prepended to all paths, after they are converted to absolute
paths. (Preventing an SFTP-client to see anything above the
given root.)
For more options, see ssh_cm:listen.