mirror of
https://github.com/unraid/webgui.git
synced 2026-05-19 04:39:52 -05:00
Docker skip hidden files when listing directories
Solves the problem with dockerMan pumping out tons of simpleXML errors when a Mac creates its ._ files See https://lime-technology.com/forums/topic/70636-beta-diskspeed-hard-drive-benchmarking-unraid-6/?page=5&tab=comments#comment-653133 (Hasn't really appeared prior because this template was originally published as a .xml the user had to copy manually onto the flash drive)
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