Commit Graph

31 Commits

Author SHA1 Message Date
Jean-Luc Lacroix
a93533d16c
New date formats for non standard dates returned by LIST (#354) 2024-01-11 14:31:46 -05:00
Julien Laffaye
05cd33e2ad Fix issues reported by errcheck 2021-03-06 19:36:26 -05:00
Julian Kornberger
7ec48e555e Use subtests and assert() 2020-07-08 08:33:57 +02:00
Julian Kornberger
c1312a7102 Correctly parse symlink (#152)
fixes #151
2019-06-24 10:48:59 +02:00
Julian Kornberger
9284a88df5 Support line with ACL permissions (#146)
closes #145
2019-05-22 12:26:03 +02:00
Julien Laffaye
b218223d02 Use error values in tests 2019-01-22 16:04:06 +01:00
Shannon Wynter
4772add9d0 Make it possible to specify what timezone to parse timestamps in 2018-03-20 15:07:44 +10:00
Julian Kornberger
1b2b72d74e Add newTime helper to tests 2018-01-04 15:42:28 +01:00
Julian Kornberger
3748fd91db Add another test case 2018-01-04 13:36:22 +01:00
Julian Kornberger
352a1d8821 Fix time parsing and reduce syscalls
closes #109
2018-01-04 13:28:55 +01:00
laraoz
090169ab63 #105 Fix parseRFC3659ListLine issue 2017-09-26 20:33:03 -03:00
Julian Kornberger
0445d85941 Fix possible runtime error
closes #97
2017-07-20 21:09:00 +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
Julian Kornberger
f74506daaa Add test case for filename surrounded by whitespace 2016-12-31 18:20:29 +01:00
Svett Ralchev
08566066b1 Fix incorrect filename parsing
When the file creation year, file size and filename contains the same
substring the parsed filename should contains only the correct filename
2016-12-29 00:37:08 +00:00
codeman
e14d0d6be5 Add parse test for dir and file names that contain multiple spaces 2016-03-16 13:41:20 +08:00
Julian Kornberger
1fc6b70adc Another fix for the line parser 2015-12-28 12:17:09 +01:00
Julian Kornberger
107079411b Do not crash on invalid lines 2015-12-28 00:12:10 +01:00
Andy Balholm
95346071de Add support for directory listings in MS-DOS DIR format. 2015-08-24 16:03:52 -07:00
Julian Kornberger
6f8509b5d6 Increase test coverage 2015-08-20 10:37:56 +02:00
Julian Kornberger
3a78f26034 Some code optimizations 2015-08-18 23:34:52 +02:00
Julian Kornberger
72db6844f1 Improve line parsing 2015-08-18 22:33:04 +02:00
Julian Kornberger
4c910c8b22 Add support for a third listing format 2015-08-18 18:54:40 +02:00
Julian Kornberger
94120171fb Add support for another listing format 2015-08-18 18:54:40 +02:00
Julien Laffaye
e177ecf60b Simplify the code with gofmt -s 2015-03-05 11:45:33 +01:00
Julien Laffaye
d4849c8195 gofmt parse_test.go 2013-07-08 20:06:16 +02:00
SunRunAway
6416febc89 add Time for Entry 2013-07-08 13:21:43 +08:00
Julien Laffaye
acaf7edcbc gofmt 2013-02-17 10:31:56 +01:00
Julien Laffaye
d69e9326f4 Set the size of the entry in List() 2013-02-17 10:03:46 +01:00
jlaffaye
a87255661d Better error handling, new commands.
The code is no safer.
Added Stor(), Rename(), NoOp()
Improved Retr()
Added client tests (requires a ftp server on localhost)
2011-09-05 23:36:14 +02:00
jlaffaye
bcc332e95c First commit. 2011-05-07 00:29:10 +01:00