$transferMode
$transferMode : integer
$safeStorage : \League\Flysystem\SafeStorage
write( $path, $contents, \League\Flysystem\Config $config)
| $path | ||
| $contents | ||
| \League\Flysystem\Config | $config |
writeStream(string $path, resource $resource, \League\Flysystem\Config $config) : resource
| string | $path | |
| resource | $resource | |
| \League\Flysystem\Config | $config |
update( $path, $contents, \League\Flysystem\Config $config)
| $path | ||
| $contents | ||
| \League\Flysystem\Config | $config |
updateStream( $path, $resource, \League\Flysystem\Config $config)
| $path | ||
| $resource | ||
| \League\Flysystem\Config | $config |
createDir( $dirname, \League\Flysystem\Config $config)
| $dirname | ||
| \League\Flysystem\Config | $config |
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' |