From b849b7c7f29e35ce0a8742f0f1a1ab5ae9ebf857 Mon Sep 17 00:00:00 2001 From: Robin Appelman <icewind@owncloud.com> Date: Fri, 3 Jul 2015 13:43:22 +0200 Subject: [PATCH] better handling of folders --- lib/private/files/storage/polyfill/copydirectory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/files/storage/polyfill/copydirectory.php b/lib/private/files/storage/polyfill/copydirectory.php index 2c6df0f962..1b4873a3a7 100644 --- a/lib/private/files/storage/polyfill/copydirectory.php +++ b/lib/private/files/storage/polyfill/copydirectory.php @@ -54,7 +54,7 @@ trait CopyDirectory { if ($this->file_exists($target)) { $this->unlink($target); } - parent::copy($source, $target); + $this->mkdir($target); return $this->copyRecursive($source, $target); } else { return parent::copy($source, $target); -- GitLab