Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tlux committed May 10, 2019
1 parent 698fbe7 commit 546002e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ find out all available options.
{:ok, conn} = SFTPClient.connect(host: "ftp.myhost.com")
```

It is recommended to close a connection after your operations have completed:
It is strongly recommended to close a connection after your operations have
completed:

```elixir
SFTPClient.disconnect(conn)
Expand Down
9 changes: 6 additions & 3 deletions lib/sftp_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ defmodule SFTPClient do
## Connect & Disconnect
Use `connect/1` to open a new connection to an SFTP server. Refer to the docs to
find out all available options.
To open a new connection to an SFTP server:
iex> {:ok, conn} = SFTPClient.connect(host: "ftp.myhost.com")
{:ok, %SFTPClient.Conn{}}
It is recommended to close a connection after your operations have completed:
Refer to the docs for `SFTPClient.Operations.Connect.connect/1` to find out
all available options.
It is strongly recommended to close a connection after your operations have
completed:
iex> SFTPClient.disconnect(conn)
:ok
Expand Down

0 comments on commit 546002e

Please sign in to comment.