This commit is contained in:
2023-04-16 17:31:07 +08:00
parent edfe966e83
commit 45e0ec0c17
+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() || !str_starts_with($value->getFilename(), '.')) { if ($value->isDot() || str_starts_with($value->getFilename(), '.')) {
continue; continue;
} }
if ($value->isDir()) { if ($value->isDir()) {