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

Expression unable to parse following directory listing #6

Closed
hajekj opened this issue Jun 13, 2018 · 4 comments
Closed

Expression unable to parse following directory listing #6

hajekj opened this issue Jun 13, 2018 · 4 comments

Comments

@hajekj
Copy link

hajekj commented Jun 13, 2018

I have a following listing in FTP, the client doesn't seem to be able to parse it.

drwxr-S---    3 105207   501            18 Jul 04  2017 .pki

Update: It appears like the regex here is omitting S in the permissions and the directory listing appears to miss the size value - I wasn't able to find any RFC specification whether the size has to be specified.

Update 2: I was able to find this: https://files.stairways.com/other/ftp-list-specs-info.txt and http://cr.yp.to/ftp/list/binls.html

Update 3: I found this library which seems to handle the parsing quite good: https://github.com/patrickjuchli/basic-ftp, maybe you can take some inspiration?

@icetee
Copy link
Owner

icetee commented Jun 13, 2018

Soon I will look.

icetee added a commit that referenced this issue Jun 16, 2018
@icetee
Copy link
Owner

icetee commented Jun 16, 2018

@hajekj I changed the regexp. Do you have the opportunity to test?

@hajekj
Copy link
Author

hajekj commented Jun 16, 2018

Works fine! Please release an updated version when possible.

@icetee
Copy link
Owner

icetee commented Jun 16, 2018

I've released v1.0.3 the new version. Thanks for submitting the issue.

@icetee icetee closed this as completed Jun 16, 2018
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

No branches or pull requests

2 participants