Skip to content

parseUnixListLine

function parseUnixListLine(
line: string,
directory?: string,
now?: Date): RemoteEntry;

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

Parses one Unix-style FTP LIST line.

ParameterTypeDefault valueDescription
linestringundefinedRaw listing line in an ls -l compatible format.
directorystring"."Parent remote directory used to build the entry path.
nowDate...Reference date used when the line omits a year.

RemoteEntry

Normalized remote entry with raw LIST metadata retained.

ParseError When the line is not a supported Unix LIST entry.