Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2015-04-09 16:37:00 +0300
committerMorris Jobke <hey@morrisjobke.de>2015-04-10 16:47:02 +0300
commit7a3b4b464e2b2c95445fcef7563a4086ebcbc707 (patch)
treeefdacd9a4d969bb04723381fd527a710859dbb5c /lib
parent3f6db4c1ab1dfff61f27101219baf5f88a114409 (diff)
fixes #15326
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/view.php4
1 files changed, 3 insertions, 1 deletions
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;
+ }
}
}
}