FTPoison v0.1.1 FTPoison

Link to this section Summary

Functions

Changes the working directory at the remote server to Dir

Returns a list of remote files in the current directory

Returns a list of remote files matching the specified path (supporting globs)

Starts a standalone FTP client process (without the Inets service framework)

  and opens a session with the FTP server at Host

Returns the current working directory at the remote server

Link to this section Functions

Link to this function cd(pid, directory)
cd(PID, String.t()) :: String.t()

Changes the working directory at the remote server to Dir.

Link to this function list(pid)
list(PID) :: String.t()

Returns a list of remote files in the current directory

Link to this function list(pid, path)
list(PID, String.t()) :: String.t()

Returns a list of remote files matching the specified path (supporting globs)

Link to this function open(host, options \\ %{})
open(String.t(), map()) :: {:ok, PID} | {:error, {atom(), atom()}}

Starts a standalone FTP client process (without the Inets service framework)

  and opens a session with the FTP server at Host.
Link to this function pwd(pid)
pwd(PID) :: String.t()

Returns the current working directory at the remote server.

Link to this function recv(pid, remote_file)
recv(PID, String.t()) :: {:ok, PID}
Link to this function recv(pid, remote_file, local_file)
recv(PID, String.t(), String.t()) :: {:ok, PID}
Link to this function start(host)
start(String.t()) :: {:ok, PID} | {:error, {atom(), atom()}}
Link to this function stop(pid)
stop(PID) :: any()
Link to this function user(pid, username, password)
user(PID, String.t(), String.t()) :: {:ok, PID}