mirror of
https://github.com/dokuwiki/dokuwiki-extensionmirror.git
synced 2025-08-15 20:47:23 +00:00
filter out pax header dirs
This commit is contained in:
@ -232,6 +232,10 @@ class Downloader extends CLI
|
||||
$files = glob("$dir/*.php");
|
||||
$dirs = glob("$dir/*", GLOB_ONLYDIR);
|
||||
|
||||
$dirs = array_filter($dirs, function ($item) {
|
||||
return basename($item) !== 'pax_global_header';
|
||||
}); // fix some weird tars
|
||||
|
||||
if (!count($files) && count($dirs) === 1) {
|
||||
return $this->getFilesPath($dirs[0]); // go one deeper
|
||||
}
|
||||
|
Reference in New Issue
Block a user