summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2015-04-09 15:37:00 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-04-09 15:37:00 +0200
commit8af52e387618afb10bb9aa77df53b55d83c7e52b (patch)
treec933e8a8980d4c9558013e198f7de0ac4845bb39
parentb9eaa386c4f72fcf6e347a92886897b537ade6e6 (diff)
downloadnextcloud-server-8af52e387618afb10bb9aa77df53b55d83c7e52b.tar.gz
nextcloud-server-8af52e387618afb10bb9aa77df53b55d83c7e52b.zip
fixes #15326
-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 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;
+ }
}
}
}