This commit is contained in:
2023-04-16 16:54:38 +08:00
parent 9471104c79
commit 552785c16b
+1 -1
View File
@@ -70,7 +70,7 @@ class Scanner extends Component
{ {
$dir = new \DirectoryIterator($path); $dir = new \DirectoryIterator($path);
foreach ($dir as $value) { foreach ($dir as $value) {
if ($value->isDot()) { if ($value->isDot() || !str_starts_with($value->getFilename(), '.')) {
continue; continue;
} }
if ($value->isDir()) { if ($value->isDir()) {