mscdex / node-ftp

An FTP client module for node.js
MIT License
1.13k stars 246 forks source link

Fix list parse failing when encountering the S file mode bit - Issue #223 #224

Open PikeUK opened 6 years ago

PikeUK commented 6 years ago

Pull request to fix #223.

A server I tried to connect to has a directory with the S file mode bit set, node-ftp is currently unable to parse any line which contains that bit. According to the ls manual S is a valid file mode bit which means:

If the set-user-ID or set-group-ID bit is set but the corresponding executable bit is not set.

This pull request adds the S bit to the regex.