FTPoison (FTPoison v0.1.2)

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)

Returns the current working directory at the remote server.

Link to this section Functions

Link to this function

cd(pid, directory)

Specs

cd(pid(), String.t()) :: pid() | nil

Changes the working directory at the remote server to Dir.

Specs

list(pid()) :: [String.t()] | nil

Returns a list of remote files in the current directory

Link to this function

list(pid, path)

Specs

list(pid(), String.t()) :: [String.t()] | nil

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

Link to this function

open(host, options \\ %{})

Specs

open(String.t(), map()) :: nil

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

  and opens a session with the FTP server at Host.

Specs

pwd(pid()) :: String.t()

Returns the current working directory at the remote server.

Link to this function

recv(pid, remote_file)

Specs

recv(pid(), String.t()) :: pid() | nil
Link to this function

recv(pid, remote_file, local_file)

Specs

recv(pid(), String.t(), String.t()) :: pid() | nil

Specs

start(String.t()) :: pid() | nil

Specs

stop(pid()) :: any()
Link to this function

user(pid, username, password)

Specs

user(pid(), String.t(), String.t()) :: pid() | nil