downloadBucket() public method

Downloads a bucket to the local filesystem
public downloadBucket ( string $directory, string $bucket, string $keyPrefix = '', array $options = [] )
$directory string Directory to download to
$bucket string Bucket to download from
$keyPrefix string Only download objects that use this key prefix
$options array 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
Ejemplo n.º 1
0
 /**
  * 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 = [])
 {
     $this->instance->downloadBucket($directory, $bucket, $keyPrefix, $options);
 }