Skip to content

Conversation

prasad83
Copy link

Microsoft FTP Service directory listing format is having different from Unix format.
This fix handles the fallback (Unix first MS next) to achieve ReadDir compatibility.

Microsoft FTP Service directory listing format is having different from Unix format.
This fix handles the fallback (Unix first MS next) to achieve ReadDir compatibility.
@jtwatson jtwatson mentioned this pull request Jun 16, 2021
matches[3] = "rwx"
matches[4] = "rwx"
if d, e := time.Parse("01-02-06", msmatches[1]); e == nil {
matches[6] = d.Format("Jan _2")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're losing the year here. I noticed when parsing a Feb 29, 2008 date causing an error on re-parsing, but this will be an issue for any year prior to the current one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants