Update parse.go

New time formats for non standard date returned by LIST
This commit is contained in:
Jean-Luc Lacroix 2023-12-01 10:56:57 +01:00 committed by GitHub
parent bedccfb795
commit e3b763ed6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,8 @@ var listLineParsers = []parseFunc{
var dirTimeFormats = []string{ var dirTimeFormats = []string{
"01-02-06 03:04PM", "01-02-06 03:04PM",
"2006-01-02 15:04", "2006-01-02 15:04",
"01-02-2006 03:04PM",
"01-02-2006 15:04",
} }
// parseRFC3659ListLine parses the style of directory line defined in RFC 3659. // parseRFC3659ListLine parses the style of directory line defined in RFC 3659.