Julien Laffaye
e6de3d35bf
Replace DialWithOptions with Dial
...
No need for a dedicated function as Dial can take no options.
2019-04-23 14:04:25 +02:00
Julien Laffaye
9b5a3addd7
Update issue templates
2019-04-17 13:25:58 +02:00
Julien Laffaye
8b7b512afb
Add DialWithDebugOutput to log commands.
2019-04-17 13:16:26 +02:00
Julien Laffaye
75b9ebed79
Fix errors in example code
2019-04-15 18:34:29 +02:00
Julien Laffaye
52d3001130
Specify that a server conn is not concurrent safe.
...
Fixes #128
2019-04-11 17:57:07 +02:00
Julien Laffaye
73b56eeee6
Rework README
...
Add a badge link to godoc.org
Add a small code example
2019-04-10 20:28:22 +02:00
Julien Laffaye
04b1878733
Add DialWithOptions
...
DialWithOptions accept a variadic number of options, allowing to
introduce more options in the fure without breaking the API.
2019-04-10 20:25:16 +02:00
Julien Laffaye
55546487cf
Use mock for all tests
2019-04-10 20:20:50 +02:00
Julien Laffaye
8019e67744
Add tests for StatusText
2019-01-26 09:10:51 +01:00
Julien Laffaye
b218223d02
Use error values in tests
2019-01-22 16:04:06 +01:00
Julien Laffaye
72f5c01749
StatusText returns a text for the FTP status code
2019-01-22 14:54:48 +01:00
Julien Laffaye
f75dead520
error strings should not be capitalized (ST1005)
2019-01-22 14:50:39 +01:00
Julien Laffaye
509a294b60
Add missing error check in RemoveDirRecur
2019-01-22 14:47:31 +01:00
Julien Laffaye
47f21d10f0
Merge pull request #124 from xperimental/upgrade-go
...
Update Go version in Travis build.
2018-11-01 12:24:34 +01:00
Julien Laffaye
fe787349a5
Merge pull request #126 from digineo/go-1.11
...
Run tests with Go 1.11
2018-10-11 17:09:54 +02:00
Julian Kornberger
89749c6313
Run tests with Go 1.11
2018-10-10 20:53:51 +02:00
Robert Jacob
a6cab19b01
Update Go version in Travis build.
2018-10-06 14:48:15 +02:00
Vladimir Buyanov
3f6433f7ea
Workaround for FTP servers, that does not support UTF8 option. ( #120 )
...
* Workaround for FTP servers, that does not support UTF8 option.
2018-08-08 23:16:05 +02:00
Julien Laffaye
2403248fa8
Use last two Go version for travis
2018-04-04 14:35:14 +02:00
Julien Laffaye
dab2053398
Merge pull request #116 from freman/master
...
Make it possible to specify what timezone to parse timestamps in
2018-03-22 23:52:25 +01:00
Shannon Wynter
4772add9d0
Make it possible to specify what timezone to parse timestamps in
2018-03-20 15:07:44 +10:00
Julien Laffaye
427467931c
Merge pull request #115 from ncw/fix-pasv
...
Parse IP address returned with PASV to fix load balanced FTP servers
2018-02-05 00:23:34 +01:00
Nick Craig-Wood
8aeb589fce
Parse IP address returned with PASV to fix load balanced FTP servers
...
Fixes #114
2018-02-04 16:02:56 +00:00
Julien Laffaye
83891dbe00
Merge pull request #110 from digineo/time-parsing
...
Fix time parsing and reduce syscalls
2018-01-05 08:56:08 +01:00
Julien Laffaye
2c34dfa9b1
Merge pull request #111 from digineo/golint
...
Add golint
2018-01-05 08:53:57 +01:00
Julian Kornberger
1b2b72d74e
Add newTime helper to tests
2018-01-04 15:42:28 +01:00
Julian Kornberger
38ce06637b
Fix golint warning
2018-01-04 15:23:55 +01:00
Julian Kornberger
9996d9dfc0
Add golint
2018-01-04 13:52:50 +01:00
Julian Kornberger
3748fd91db
Add another test case
2018-01-04 13:36:22 +01:00
Julian Kornberger
5bde7e961e
Don't reduce year of date to two digits
2018-01-04 13:28:55 +01:00
Julian Kornberger
352a1d8821
Fix time parsing and reduce syscalls
...
closes #109
2018-01-04 13:28:55 +01:00
Julien Laffaye
c2fc7f0a5a
Merge pull request #101 from digineo/tcpaddr
...
Use net.TCPAddr to extract remote IP address
2017-12-29 17:48:55 +01:00
Julien Laffaye
299b7ff5b6
Merge pull request #106 from laraoz/parseRFC3659ListLine-issue
...
parseRFC3659ListLine issue
2017-09-27 18:34:33 +02:00
laraoz
090169ab63
#105 Fix parseRFC3659ListLine issue
2017-09-26 20:33:03 -03:00
Julian Kornberger
f5cdbb9f1e
Use net.TCPAddr to extract remote IP address
2017-08-12 01:24:47 +02:00
Julien Laffaye
769512c448
Merge pull request #98 from digineo/fix_97
...
Fix possible runtime error
2017-07-21 23:38:41 +02:00
Julian Kornberger
0445d85941
Fix possible runtime error
...
closes #97
2017-07-20 21:09:00 +02:00
Julien Laffaye
a05056b3ca
Merge pull request #96 from allenluce/zero-link-count
...
Add a case to catch Unix-like but 0 link count list line
2017-07-07 12:19:14 +02:00
Allen Luce
4b298416ea
Add a case to catch Unix-like but 0 link count list line
...
I happened upon this with hostedftp.com:
-r-------- 0 user group 65222236 Feb 24 00:39 UABlacklistingWeek8.csv
Otherwise a fine Unix-like list line, but link count is 0 for some
reason. That company wasn't able to tell me why.
2017-07-06 00:55:11 +00:00
Julien Laffaye
6bccbfbf6c
Merge pull request #93 from Mojachieee/master
...
added recursively deleting (non-empty) folders
2017-06-16 09:00:30 +02:00
Joe
479d87b91a
added recursively deleting folders
...
added tests for recursive delete
added change dir to fix test + refactor
fixed path issues
changes directory now instead of deleting by path
proftpd fix
added file edge case + more tests
added directory does not exist test
added correct directory after delete test
fixed correct directory test
renamed test directories + files
missed a renamed
2017-06-13 21:21:50 +01:00
Julien Laffaye
5c7b901224
Merge pull request #87 from DAddYE/patch-1
...
Avoid forever lock
2017-05-07 20:23:38 +02:00
Davide D'Agostino
980e2e09a5
Document that closing two times doesn't do anything
2017-05-04 19:03:56 -07:00
Davide D'Agostino
cb362c4101
Rename connClosed -> closed
2017-05-04 17:46:41 -07:00
Davide D'Agostino
7e3820b35d
Address comments
2017-05-04 13:03:00 -07:00
Davide D'Agostino
58864d889b
Avoid forever lock
...
If we close the connection two times the second time will hang forever waiting for a server code.
2017-05-01 18:56:43 -07:00
Julien Laffaye
0895dc7f07
Merge pull request #83 from digineo/deadline
...
Add SetDeadline to Response
2017-04-15 20:58:00 +02:00
Julien Laffaye
07efa8ac2b
Merge pull request #84 from digineo/go1.8
...
Test with Go 1.7.5 and 1.8.1
2017-04-15 20:55:39 +02:00
Julian Kornberger
569481fc3b
Add SetDeadline to Response
...
closes #70
2017-04-15 12:18:04 +02:00
Julian Kornberger
fcbae662df
Test Go 1.7.5 and 1.8.1
2017-04-15 12:15:33 +02:00