From a92801e008271d5299e3a3ff6234f5d573f8266a Mon Sep 17 00:00:00 2001 From: Michel LAURENT Date: Thu, 7 Jan 2016 18:49:31 +0100 Subject: [PATCH] Skip the makeDirectory call when dirname returns a period --- src/Commands/BackupCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Commands/BackupCommand.php b/src/Commands/BackupCommand.php index 80038e24..bce2e1a9 100644 --- a/src/Commands/BackupCommand.php +++ b/src/Commands/BackupCommand.php @@ -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);