Skip to content

parseMlsdLine

function parseMlsdLine(line: string, directory?: string): RemoteEntry;

Defined in: src/providers/classic/ftp/FtpListParser.ts:108

Parses a single MLSD or MLST fact line.

ParameterTypeDefault valueDescription
linestringundefinedRaw fact line in fact=value; name format.
directorystring"."Parent remote directory used to build the entry path.

RemoteEntry

A normalized remote entry with parsed facts in raw metadata.

ParseError When the line does not contain facts and a name.