diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index c985820..887e6ae 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -13,7 +13,7 @@ function getLastSnapTime(array $files): int foreach ($files as $file) { - if (is_dir($filename) || is_link($filename) || str_starts_with($filename, '.')) + if (is_dir($file) || is_link($file) || str_starts_with($file, '.')) { continue; }