diff --git a/lib/private/files/storage/polyfill/copydirectory.php b/lib/private/files/storage/polyfill/copydirectory.php index 2c6df0f962c5d87e1f1d7f170d68371d14920c58..1b4873a3a762ea021e1ab0ea41cdd8b455a16a26 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);