當前位置: 首頁>>代碼示例>>PHP>>正文


PHP S3Client::downloadBucket方法代碼示例

本文整理匯總了PHP中Aws\S3\S3Client::downloadBucket方法的典型用法代碼示例。如果您正苦於以下問題:PHP S3Client::downloadBucket方法的具體用法?PHP S3Client::downloadBucket怎麽用?PHP S3Client::downloadBucket使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Aws\S3\S3Client的用法示例。


在下文中一共展示了S3Client::downloadBucket方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: downloadBucket

 /**
  * Downloads a bucket to the local filesystem
  *
  * @param string $directory Directory to download to
  * @param string $bucket Bucket to download from
  * @param string $keyPrefix Only download objects that use this key prefix
  * @param array  $options Associative array of download options
  *                          - params: Array of parameters to use with each GetObject operation performed during the transfer
  *                          - base_dir: Base directory to remove from each object key when storing in the local filesystem
  *                          - force: Set to true to download every file, even if the file is already on the local filesystem and has not
  *                          changed
  *                          - concurrency: Maximum number of parallel downloads (defaults to 10)
  *                          - debug: Set to true or a fopen resource to enable debug mode to print information about each download
  *                          - allow_resumable: Set to true to allow previously interrupted downloads to be resumed using a Range GET
  */
 public function downloadBucket($directory, $bucket, $keyPrefix = '', array $options = [])
 {
     return $this->instance->downloadBucket($directory, $bucket, $keyPrefix, $options);
 }
開發者ID:Webiny,項目名稱:Framework,代碼行數:19,代碼來源:S3.php

示例2: download

 /**
  * download
  *
  * @param string $directory
  * @param string $keyPrefix
  * @param array  $options
  */
 public function download($directory, $keyPrefix = null, array $options = array())
 {
     $this->client->downloadBucket($directory, $this->name, $keyPrefix, $options);
 }
開發者ID:m6web,項目名稱:aws-bundle,代碼行數:11,代碼來源:Bucket.php


注:本文中的Aws\S3\S3Client::downloadBucket方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。