mirror of
https://github.com/unraid/webgui.git
synced 2026-03-20 20:02:44 -05:00
Merge pull request #334 from Squidly271/patch-2
Docker skip hidden files when listing directories
This commit is contained in:
@@ -72,6 +72,7 @@ class DockerTemplates {
|
||||
foreach ($iter as $path => $fileinfo) {
|
||||
$fext = $fileinfo->getExtension();
|
||||
if ($ext && $ext != $fext) continue;
|
||||
if (substr(basename($path),0,1) == ".") continue;
|
||||
if ($fileinfo->isFile()) $paths[] = ['path' => $path, 'prefix' => basename(dirname($path)), 'name' => $fileinfo->getBasename(".$fext")];
|
||||
}
|
||||
return $paths;
|
||||
|
||||
Reference in New Issue
Block a user