From: Jörn Friedrich Dreyer Date: Thu, 9 Apr 2015 13:37:00 +0000 (+0200) Subject: fixes #15326 X-Git-Tag: v8.1.0alpha1~47^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8af52e387618afb10bb9aa77df53b55d83c7e52b;p=nextcloud-server.git fixes #15326 --- diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 0f371bbc5ea..ab7a7d3db9a 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -762,7 +762,9 @@ class View { if (is_resource($dh)) { while (($file = readdir($dh)) !== false) { if (!Filesystem::isIgnoredDir($file)) { - $result = $this->copy($path1 . '/' . $file, $path2 . '/' . $file, $preserveMtime); + if (!$this->copy($path1 . '/' . $file, $path2 . '/' . $file, $preserveMtime)) { + $result = false; + } } } }