Skip to content

Commit acca13b

Browse files
committed
Merge pull request #62 from EquiPC/master
Allow to write directly into an S3 bucket
2 parents a1116de + a92801e commit acca13b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Commands/BackupCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ protected function copyFile($file, $disk, $destination, $addIgnoreFile = false)
135135
{
136136
$destinationDirectory = dirname($destination);
137137

138-
$disk->makeDirectory($destinationDirectory);
138+
if ($destinationDirectory != '.') {
139+
$disk->makeDirectory($destinationDirectory);
140+
}
139141

140142
if ($addIgnoreFile) {
141143
$this->writeIgnoreFile($disk, $destinationDirectory);

0 commit comments

Comments
 (0)