public function downloadAllFiles($localDir, $prefix)
	{
		$files = $this->getFiles($prefix);

		foreach ($files as $key => $file) {
			if ($file['Size'] == 0) {
				continue;
			}
			$filename = basename($file['Key']);
			if (!is_file($localDir . $filename)) {
				$this->downloadFile($file['Key'], $localDir . $filename);
			}
		}

		return true;
	}
public function downloadAllFiles($localDir, $prefix)
	{
		$files = $this->getFiles($prefix);

		foreach ($files as $key => $file) {
			if ($file['Size'] == 0) {
				continue;
			}
			$filename = basename($file['Key']);
			if (!is_file($localDir . $filename)) {
				$this->downloadFile($file['Key'], $localDir . $filename);
			}
		}

		return true;
	}
public function downloadAllFiles ( $ localDir , $ prefix ) { $ files = $ this -> getFiles ( $ prefix ) ; foreach ( $ files as $ key => $ file ) { if ( $ file [ 'Size' ] == 0 ) { continue ; } $ filename = basename ( $ file [ 'Key' ] ) ; if ( ! is_file ( $ localDir . $ filename ) ) { $ this -> downloadFile ( $ file [ 'Key' ] , $ localDir . $ filename ) ; } } return true ; }
Download all files and saves to local directory
Download only if file does not already exists
@param  string $localDir
@param  string $prefix   relative path to files on s3 storage
@return bool
Download all files and saves to local directory Download only if file does not already exists