summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-10-04 09:28:46 +0200
committerFrank Karlitschek <frank@owncloud.org>2013-10-04 09:28:46 +0200
commite49ee47e7b9cd6bc03851281d270885b9fd2d70c (patch)
tree22543a1e3e7b8b0c6560a409ac4bf755d5c423e9 /lib
parentf0a98cc92374f62a1fdd884c206424242427c8c5 (diff)
downloadnextcloud-server-e49ee47e7b9cd6bc03851281d270885b9fd2d70c.tar.gz
nextcloud-server-e49ee47e7b9cd6bc03851281d270885b9fd2d70c.zip
use Filesystem::isIgnoredDir
Diffstat (limited to 'lib')
-rwxr-xr-xlib/private/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index d0b0fbfc807..cb33e3597a2 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -113,7 +113,7 @@ class OC_Util {
$dir = opendir($source);
@mkdir($target);
while(false !== ( $file = readdir($dir)) ) {
- if (( $file != '.' ) && ( $file != '..' )) {
+ if ( !\OC\Files\Filesystem::isIgnoredDir($file) ) {
if ( is_dir($source . '/' . $file) ) {
OC_Util::copyr($source . '/' . $file , $target . '/' . $file);
} else {