$pathPrefix
$pathPrefix : string|null
$safeStorage : \League\Flysystem\SafeStorage
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) : integer
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' |