From 7a3b4b464e2b2c95445fcef7563a4086ebcbc707 Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Thu, 9 Apr 2015 15:37:00 +0200 Subject: fixes #15326 --- lib/private/files/view.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/files/view.php b/lib/private/files/view.php index b5ad425a0fa..b58a8c2d639 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -639,7 +639,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; + } } } } -- cgit v1.2.3