$connection
$connection : mixed
$connection : mixed
$host : string
$port : int
$ssl : bool
$timeout : int
$passive : bool
$separator : string
$root : string|null
$permPublic : int
$permPrivate : int
$configurable : array
$systemType : string
$safeStorage : \League\Flysystem\SafeStorage
$enableTimestampsOnUnixListings : bool
True to enable timestamps for FTP servers that return unix-style listings.
$pathPrefix : string|null
$pathSeparator : string
$transferMode : int
$ignorePassiveAddress : null|bool
$recurseManually : bool
$utf8 : bool
$isPureFtpd : bool
normalizeUnixObject(string $item, string $base) : array
Normalize a Unix file entry.
Given $item contains: '-rw-r--r-- 1 ftp ftp 409 Aug 19 09:01 file1.txt'
This function will return: [ 'type' => 'file', 'path' => 'file1.txt', 'visibility' => 'public', 'size' => 409, 'timestamp' => 1566205260 ]
string | $item | |
string | $base |
normalized file array
normalizeUnixTimestamp(string $month, string $day, string $timeOrYear) : int
Only accurate to the minute (current year), or to the day.
Inadequacies in timestamp accuracy are due to limitations of the FTP 'LIST' command
Note: The 'MLSD' command is a machine-readable replacement for 'LIST' but many FTP servers do not support it :(
string | $month | e.g. 'Aug' |
string | $day | e.g. '19' |
string | $timeOrYear | e.g. '09:01' OR '2015' |