actually exclude files set with --exclude

This commit is contained in:
Uwe Steinmann 2024-08-15 13:35:25 +02:00
parent 7f94f38ed2
commit 6fc30510cd

View File

@ -233,7 +233,7 @@ function import_folder($dirname, $folder, $setfiledate, $setfolderdate, $metadat
$sequence = 1; $sequence = 1;
while(false !== ($entry = $d->read())) { while(false !== ($entry = $d->read())) {
$path = $dirname.'/'.$entry; $path = $dirname.'/'.$entry;
if($entry != '.' && $entry != '..' && $entry != '.svn') { if(!in_array($entry, $excludefiles)) {
if(is_file($path)) { if(is_file($path)) {
$name = utf8_basename($path); $name = utf8_basename($path);
$filetmp = $path; $filetmp = $path;