Skip to content

Commit 77f6eb1

Browse files
committed
Fix README and docstring for options map in ssh/sftp
Fixes #15
1 parent 79a775b commit 77f6eb1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ SFTP is supported:
101101
(with-connection session
102102
(let [channel (ssh-sftp session)]
103103
(with-channel-connection channel
104-
(sftp channel :cd "/remote/path")
105-
(sftp channel :put "/some/file" "filename"))))))
104+
(sftp channel {} :cd "/remote/path")
105+
(sftp channel {} :put "/some/file" "filename"))))))
106106
```
107107

108108
SSH tunneling is also supported:

src/clj_ssh/ssh.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ sh returns a map of
536536
(defn sftp
537537
"Execute SFTP commands.
538538
539-
sftp host-or-session cmd & options
539+
sftp host-or-session options cmd & args
540540
541541
cmd specifies a command to exec. Valid commands are:
542542
:ls

0 commit comments

Comments
 (0)