Skip to content

parseMlsdList

function parseMlsdList(input: string, directory?: string): RemoteEntry[];

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

Parses an MLSD directory listing into normalized remote entries.

ParameterTypeDefault valueDescription
inputstringundefinedRaw MLSD response body.
directorystring"."Parent remote directory used to build entry paths.

RemoteEntry[]

Remote entries excluding the . and .. pseudo entries.

ParseError When any listing line is malformed.