Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #54: Microsoft FTP Service directory format. #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants