Method |
Description |
|
__construct ( $access_key, $secret_key, $bucket, $domains, $notify_url = null ) |
|
|
calculateQetag ( $localFilePath ) : array |
|
|
copy ( string $path, string $newpath ) : boolean |
Copy a file. |
|
createDir ( string $dirname, League\Flysystem\Config $config ) : array | false |
Create a directory. |
|
delete ( string $path ) : boolean |
Delete a file. |
|
deleteDir ( string $dirname ) : boolean |
Delete a directory. |
|
downloadUrl ( null $path = null, string $domainType = 'default' ) : string | QiniuUrl |
|
|
fetch ( string $url, string $key = null ) : boolean |
Fetch a file. |
|
getLastQetag ( ) : null |
|
|
getMetadata ( string $path ) : array | false |
Get all the meta data of a file or directory. |
|
getMimetype ( string $path ) : array | false |
Get the mimetype of a file. |
|
getSize ( string $path ) : array | false |
Get all the meta data of a file or directory. |
|
getTimestamp ( string $path ) : array | false |
Get the timestamp of a file. |
|
has ( string $path ) : array | boolean | null |
Check whether a file exists. |
|
imageExif ( null $path = null ) : boolean |
|
|
imageInfo ( null $path = null ) : boolean |
|
|
imagePreviewUrl ( null $path = null, null $ops = null ) : string | QiniuUrl |
|
|
listContents ( string $directory = '', boolean $recursive = false ) : array |
List contents of a directory. |
|
persistentFop ( null $path = null, null $fops = null, null $pipline = null, boolean $force = false ) : boolean |
|
|
persistentStatus ( $id ) : array |
|
|
privateDownloadUrl ( $path, string | array $settings = 'default' ) : string |
|
|
privateImagePreviewUrl ( null $path = null, null $ops = null ) : string | QiniuUrl |
|
|
read ( string $path ) : array | false |
Read a file. |
|
rename ( string $path, string $newpath ) : boolean |
Rename a file. |
|
setDomainPrefix ( string $prefix, $domainType ) : self |
Set the path prefix. |
|
update ( string $path, string $contents, League\Flysystem\Config $config ) : array | false |
Update a file. |
|
updateStream ( string $path, resource $resource, League\Flysystem\Config $config ) : mixed |
Update a file using a stream. |
|
uploadToken ( null $path = null, integer $expires = 3600, null $policy = null, boolean $strictPolicy = true ) : string |
|
|
verifyCallback ( $contentType, $originAuthorization, $url, $body ) : boolean |
|
|
write ( string $path, string $contents, League\Flysystem\Config $config ) : array | false |
Write a new file. |
|
writeStream ( string $path, resource $resource, League\Flysystem\Config $config ) : mixed |
Write using a stream. |
|