Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 665 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 665 Bytes

ExFtp

Simple FTP client for Elixir.

Use like this:

pid = ExFtp.open("ftp.targetdomain.com", "foo_user", "bar_password")
ExFtp.cd(pid, "/mydir")
list = ExFtp.ls()

assert list == [%{name: "foobar.txt", type: :file}, %{name: "subdir", type: :directory}]

Installation

If available in Hex, the package can be installed as:

  1. Add ftp to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:exftp, github: 'mlankenau/exftp'}]
end
```
  1. Ensure ftp is started before your application:
```elixir
def application do
  [applications: [:exftp]]
end
```