Name
List
Synopsis
$FTP->List([pattern,listmode]) $FTP->Ls([pattern,listmode]) $FTP->Dir([pattern,listmode])
Returns a list containing the files found in the
current directory, matching the given
pattern, if specified. The content of
the returned list depends on the
listmodeparameter, which can have the
following values:
1(default)The list contains the names of the files found.
2The list contains seven values for each file:
The filename
The DOS short filename, a.k.a. 8.3
The size
The attributes
The creation time
The last access time
The last modified time
3The list contains a reference to a hash for each found file. Each hash contains the following key/value pairs:
name =>
filenamealtname =>DOS short filename, a.k.a. 8.3size =>sizeattr =>attributesctime =>creation timeatime =>last access timemtime =>last modified timeAll times are reported as strings of the following format: second, hour, minute, day, month, year. For example:
$file->{'mtime'} == "0,10,58,9,12,1996" # Stands for 09 Dec 1996 at 10:58:00