From 8af52e387618afb10bb9aa77df53b55d83c7e52b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 9 Apr 2015 15:37:00 +0200 Subject: [PATCH] fixes #15326 --- lib/private/files/view.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 0f371bbc5e..ab7a7d3db9 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; + } } } }