mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
use Filesystem::isIgnoredDir
This commit is contained in:
parent
f0a98cc923
commit
e49ee47e7b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue