diff options
author | Frank Karlitschek <frank@owncloud.org> | 2013-10-04 09:28:46 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2013-10-04 09:28:46 +0200 |
commit | e49ee47e7b9cd6bc03851281d270885b9fd2d70c (patch) | |
tree | 22543a1e3e7b8b0c6560a409ac4bf755d5c423e9 /lib | |
parent | f0a98cc92374f62a1fdd884c206424242427c8c5 (diff) | |
download | nextcloud-server-e49ee47e7b9cd6bc03851281d270885b9fd2d70c.tar.gz nextcloud-server-e49ee47e7b9cd6bc03851281d270885b9fd2d70c.zip |
use Filesystem::isIgnoredDir
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/private/util.php | 2 |
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 { |