Ignore hidden files

This commit is contained in:
Sheldon Lee 2024-03-10 15:09:19 +08:00
parent 1f52134bd7
commit abec1c242f

View File

@ -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);