sergi/jsftp

File stat error with ftp-srv

JbIPS opened this issue · 1 comments

JbIPS commented

Hi,

I'm using ftp-srv in my tests and I saw my test using JSFTP.ls() returned no entry when calling it on a file.

After inspection I find out ftp-srv is outputing:

212 -rw-rw-rw- 1 1 1        16190 Dec 07 16:25

which is remove because it does not match RE_MULTI because of the space between the code and the first -.

Is the solution to change RE_MULTI to /^(\d\d\d)\s?-/ to allow space or did I miss something?

I can make a PR if you think this is a bug. Thank you

JbIPS commented

I'm sorry, just find out parser.js is actually in parse-listing package. I'm moving the issue.