Dmyers\Storage\Adapter\AmazonS3::files PHP Method

files() public method

{@inheritDoc}
public files ( $path )
    public function files($path)
    {
        $files = array();
        $iterator = $this->client->getIterator('ListObjects', array('Bucket' => $this->bucket, 'Prefix' => $this->computePath($path)));
        foreach ($iterator as $object) {
            $files[] = $object['Key'];
        }
        return $files;
    }