parse-listing
parse-listing copied to clipboard
Small library to parse file listings into JavaScript objects
Hi @sergi, thanks for this lib I created a Typescript typing, if you want to have a look and approve the PR on the DefinitelyTyped repo https://github.com/DefinitelyTyped/DefinitelyTyped/pull/58419 Cheers
NaN- issue is fixed for firefox. Parse listing was not able to parse date from NaN. Because windows FTP server returns date in diffrent format.
Date Not Showing in Mozilla Firefox browser Show NAN : { type: 1, size: 4096, name: "project2", time: NAN, }
As per http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/ls.c?id=v8.21#n3785
Changing regex to only take a single piece of whitespace after the date. I have an app that pulls files via jsftp. And users creating files with whitespace regularly causes...
If filenames started with a space (which is a valid name in Unix), these spaces would be removed from the returned listing, returning. For example: ``` --rw-r----- 1 userName alternc...
Here is the case: `07-10-13 06:54AM 1400`
I verified this in https://github.com/digitarald/flash-b2g which failed to list files for http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/ .