NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class DownloadSync

Downloads and Amazon S3 bucket to a local directory

  Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
  Aws\S3\Sync\AbstractSync
  Aws\S3\Sync\DownloadSync

Namespace: Aws\S3\Sync
Located at Aws/S3/Sync/DownloadSync.php

## Methods summary

- `protected` `createTransferAction ( SplFileInfo $file )`

  Create a command or special transfer action for the

- `protected` `createDirectory ( mixed $filename )`
- `protected` `filterCommands ( array $commands )`
- `protected` `transferCommands ( array $commands )`

  Transfer an array of commands in parallel

## Methods detail

# `protected CommandInterface|callable`
`createTransferAction( `SplFileInfo` $file )`

Create a command or special transfer action for the

#### Parameters

$file
  ``SplFileInfo``
  $file File used to build the transfer

#### Returns

`CommandInterface|callable`
# `protected`
`createDirectory( mixed $filename )`

#### CodeCoverageIgnore

# `protected`
`filterCommands( array $commands )`
# `protected`
`transferCommands( array $commands )`

Transfer an array of commands in parallel

#### Parameters

$commands
  `array`
  $commands Commands to transfer

#### Overrides

`Aws\S3\Sync\AbstractSync::transferCommands`

### Methods inherited from Aws\S3\Sync\AbstractSync

`__construct()`, `getAllEvents()`, `init()`, `transfer()`, `transferFiles()`

### Methods inherited from Guzzle\Common\AbstractHasDispatcher

`addSubscriber()`, `dispatch()`, `getEventDispatcher()`, `setEventDispatcher()`

### Magic methods summary

## Constants summary

### Constants inherited from Aws\S3\Sync\AbstractSync

`AFTER_TRANSFER`, `BEFORE_TRANSFER`

## Properties summary

### Properties inherited from Aws\S3\Sync\AbstractSync

`$options`

### Properties inherited from Guzzle\Common\AbstractHasDispatcher

`$eventDispatcher`