mirror of
https://github.com/nextcloud/server.git
synced 2024-07-25 13:54:59 +02:00
use Filesystem::isIgnoredDir
This commit is contained in:
parent
f0a98cc923
commit
e49ee47e7b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user