Skip to content

Commit

Permalink
Merge pull request #62 from EquiPC/master
Browse files Browse the repository at this point in the history
Allow to write directly into an S3 bucket
  • Loading branch information
freekmurze committed Jan 8, 2016
2 parents a1116de + a92801e commit acca13b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Commands/BackupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ protected function copyFile($file, $disk, $destination, $addIgnoreFile = false)
{
$destinationDirectory = dirname($destination);

$disk->makeDirectory($destinationDirectory);
if ($destinationDirectory != '.') {
$disk->makeDirectory($destinationDirectory);
}

if ($addIgnoreFile) {
$this->writeIgnoreFile($disk, $destinationDirectory);
Expand Down

0 comments on commit acca13b

Please sign in to comment.