Nick Craig-Wood
51d2174c0b
ftp: check connection before returning it to the pool #1435
...
If the last FTP command caused an error, and if the error wasn't a
regular FTP error code, then we check the connection is working using
a NOOP call before returning it to the connection pool.
2017-05-24 14:47:13 +01:00
Nick Craig-Wood
a9d29c2264
ftp: don't pool the connection if file download failed
2017-05-19 17:45:22 +01:00
Nick Craig-Wood
e172f00e0e
ftp: fix errors from Close of a stream which hasn't been fully read
2017-05-19 12:28:47 +01:00
Nick Craig-Wood
412dacf8be
Add a test for partial reads to all remotes
2017-05-19 12:28:47 +01:00
Nick Craig-Wood
cdacf026e4
ftp: implement server side move and directory move
2017-05-18 20:49:36 +01:00
Nick Craig-Wood
0ca6408580
ftp: rework mkdir to be more efficient
2017-05-18 20:49:36 +01:00
Nick Craig-Wood
9627a6142d
ftp: support --contimeout
2017-05-18 20:49:36 +01:00
Nick Craig-Wood
6cc783f20b
ftp: stop rmdir being recursive
2017-05-18 20:49:36 +01:00
Nick Craig-Wood
3136a75f4d
ftp: add connection pool and remove excess locking
2017-05-18 20:49:36 +01:00
Nick Craig-Wood
a9101f8608
ftp: Fix for go1.6 and go1.7
2017-05-18 20:49:36 +01:00
Nick Craig-Wood
35c210d36f
ftp: fix remaining issues to make tests work
...
* fix root
* factor ftpConnection
* fix path munging
* fix recursive dir loops after update
* use fs.Trace and comment out debugs
* re-arrange and supplement docs
2017-05-18 20:49:36 +01:00
Nick Craig-Wood
3ed0440bd2
ftp: use path instead of filepath
2017-05-18 20:49:36 +01:00
Nick Craig-Wood
c13cff37ef
ftp: replace URL parser with url.URL
2017-05-18 20:49:36 +01:00
Nick Craig-Wood
fce734662f
ftp: fix golint/go vet/errchk errors and move methods into standard order
2017-05-18 20:49:36 +01:00
Nick Craig-Wood
e0ba1a2cd2
ftp: fix bitrot
2017-05-18 20:49:36 +01:00
Antonio Messina
c72fca2711
Add ftp backend - fixes #540
2017-05-18 20:49:36 +01:00