aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/polyfill/copydirectory.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/storage/polyfill/copydirectory.php')
-rw-r--r--lib/private/files/storage/polyfill/copydirectory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/storage/polyfill/copydirectory.php b/lib/private/files/storage/polyfill/copydirectory.php
index 1b4873a3a76..73c6d3d5436 100644
--- a/lib/private/files/storage/polyfill/copydirectory.php
+++ b/lib/private/files/storage/polyfill/copydirectory.php
@@ -72,7 +72,7 @@ trait CopyDirectory {
$dh = $this->opendir($source);
$result = true;
while ($file = readdir($dh)) {
- if ($file !== '.' and $file !== '..') {
+ if (!\OC\Files\Filesystem::isIgnoredDir($file)) {
if ($this->is_dir($source . '/' . $file)) {
$this->mkdir($target . '/' . $file);
$result = $this->copyRecursive($source . '/' . $file, $target . '/' . $file);