Cassondra Foesch
f1e28f8a88
Improve benchmarks and errors
2021-03-17 11:03:51 +00:00
Masahiro Furudate
2c5b78c2ef
Fix example error
...
Replace from `sftp.Close()` to `client.Close()`.
2020-06-30 12:01:49 +09:00
Eric Leijonmarck
b6c57af363
Update example_test.go
2020-06-05 11:48:26 +02:00
Eric Leijonmarck
e38ca124c6
Update example_test.go
...
Add Closing of the file. Had trouble finding the error in which a sftp did not catch my file through this example.
Need to close the file in order for it completely see the newly created file.
2020-06-02 09:31:56 +02:00
Eric Leijonmarck
0142f240ba
Update example_test.go
...
Overwriting the package name of the sftp.
Should use client in the example instead
2020-05-28 14:42:41 +02:00
John Eikenberry
72ec6e8559
Add example about ReadFrom + bufio interaction
...
Fixes #125
2018-01-11 18:24:04 -08:00
holtwilkins
3b9263e3f5
Fixes to mkdir example
...
* Adjusting name of `ssh_fx_failure` variable to match go formatting
* Fixing logic error for absolute paths
2017-08-18 11:04:12 +10:00
John Eikenberry
516f733588
Add Mkdir example (mkdir -p like functionality)
...
This gives an example of using Mkdir and handing errors.
Fixes #131
2017-06-18 18:46:58 -07:00
Jeremy R. Fishman
6c2c8eb1d5
vet: Example should be niladic
2016-09-22 16:37:25 -07:00
Mark Sheahan
7bb2083ca9
Address review comments; about to change decodePacket()
2015-09-06 23:55:15 -07:00
Mark Sheahan
0aec5ce5ec
use merge-to target branches, not ScriptRock ones
2015-09-06 21:54:42 -07:00
Mark Sheahan
1165da51c7
Updated to use github.com/Scriptrock/crypto/ssh
2015-02-13 09:59:47 -08:00
Mark Sheahan
074b201d7d
Reference ScriptRock ssh library, not current google one
2015-01-08 20:33:06 -08:00
Otto Bretz
1c05ca70ba
New import paths for Go sub-respositories
...
see https://groups.google.com/forum/?fromgroups#!topic/golang-nuts/eD8dh3T9yyA
2014-11-06 09:30:12 +01:00
Alexander Neumann
5af3cfa4ea
Add sftp.NewClientPipe()
...
This method returns a Client from a pair of pipes. This can be used for
connecting to an SFTP server over TCP/TLS or by using the system's ssh
client program (e.g. via exec.Command).
An Example function is added, and the client integration test uses the
function.
2014-09-30 00:49:01 +02:00
Alexander Neumann
800ec7b3f1
Correct typo
2014-09-30 00:39:42 +02:00
Saulius Gurklys
8d59c9c638
Fixed incompatibility with latest code.google.com/p/go.crypto/ssh
2014-04-10 15:37:10 +03:00
Dave Cheney
cfaf67e57e
move example to top level
2013-11-06 19:54:00 +11:00
Dave Cheney
331b71c05b
Added more example and help text
2013-11-06 19:48:37 +11:00
Dave Cheney
c5f94049a0
Added example_test.go
2013-11-06 19:42:50 +11:00