Ignore hidden files
This commit is contained in:
parent
1f52134bd7
commit
abec1c242f
@ -38,6 +38,7 @@ function main(): void {
|
||||
foreach (scandir($directory) as $file) {
|
||||
if ($file === ".") continue;
|
||||
if ($category === "" && $file === "..") continue;
|
||||
if (substr($file, 0, 1) === ".") continue;
|
||||
|
||||
$path = add_seperator_ab("/", $category, $file);
|
||||
$is_dir = is_dir(ROOT_DIR.IMG_DIR.$path);
|
||||
|
Loading…
Reference in New Issue
Block a user