Skip to content

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.

ParameterTypeDefault valueDescription
inputstringundefinedRaw LIST response body.
directorystring"."Parent remote directory used to build entry paths.
nowDate...Reference date used when LIST entries include time but omit year.

RemoteEntry[]

Remote entries excluding . and .. pseudo entries.

ParseError When any non-summary listing line is malformed.