parseUnixList
function parseUnixList( input: string, directory?: string, now?: Date): RemoteEntry[];Defined in: src/providers/classic/ftp/FtpListParser.ts:48
Parses a Unix-style FTP LIST response into normalized remote entries.
This parser covers the common ls -l shape returned by classic FTP daemons and
is used as a compatibility fallback when a server does not support MLSD.
Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
input | string | undefined | Raw LIST response body. |
directory | string | "." | Parent remote directory used to build entry paths. |
now | Date | ... | Reference date used when LIST entries include time but omit year. |
Returns
Section titled “Returns”Remote entries excluding . and .. pseudo entries.
Throws
Section titled “Throws”ParseError When any non-summary listing line is malformed.