diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-04-09 15:37:00 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-04-09 15:37:00 +0200 |
commit | 8af52e387618afb10bb9aa77df53b55d83c7e52b (patch) | |
tree | c933e8a8980d4c9558013e198f7de0ac4845bb39 | |
parent | b9eaa386c4f72fcf6e347a92886897b537ade6e6 (diff) | |
download | nextcloud-server-8af52e387618afb10bb9aa77df53b55d83c7e52b.tar.gz nextcloud-server-8af52e387618afb10bb9aa77df53b55d83c7e52b.zip |
fixes #15326
-rw-r--r-- | lib/private/files/view.php | 4 |
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; + } } } } |