From 8515447e6cbf08fdd92568ef0e924877e305d3b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20Buchl=C3=A1k?= <30214087+fbuchlak@users.noreply.github.com> Date: Thu, 2 Nov 2023 19:06:43 +0100 Subject: [PATCH] fix ignored single files (dotfiles/vcs) (#663) --- src/Infrastructure/Repositories/LocalFilesRepository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Infrastructure/Repositories/LocalFilesRepository.php b/src/Infrastructure/Repositories/LocalFilesRepository.php index 5f090322..115067f6 100644 --- a/src/Infrastructure/Repositories/LocalFilesRepository.php +++ b/src/Infrastructure/Repositories/LocalFilesRepository.php @@ -108,6 +108,8 @@ private function getSingleFiles(): array $this->finder = Finder::create() ->in($this->fileList['dirname'] ?? []) ->name($this->fileList['basename'] ?? '') + ->ignoreDotFiles(false) + ->ignoreVCS(false) ->filter(fn (SplFileInfo $file): bool => in_array( $file->getPathname(), $this->fileList['full_path'] ?? '',