Skip to content

Expression unable to parse following directory listing #6

@hajekj

Description

@hajekj

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions