From fa860422532e9cea3ad434ce087db0c499c01190 Mon Sep 17 00:00:00 2001 From: magdev Date: Tue, 4 Jun 2019 21:15:32 +0200 Subject: [PATCH] skip dot-directories --- src/Service/MarkdownService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/MarkdownService.php b/src/Service/MarkdownService.php index ab62486..f53de2f 100644 --- a/src/Service/MarkdownService.php +++ b/src/Service/MarkdownService.php @@ -104,7 +104,7 @@ class MarkdownService $intro = new Intro($this->getDocument(PROJECT_ROOT.'/intro.md')); $cv = new CurriculumVitae($this->formatter); - $files = new \FilesystemIterator(PROJECT_ROOT.'/cv'); + $files = new \FilesystemIterator(PROJECT_ROOT.'/cv', \FilesystemIterator::SKIP_DOTS); foreach ($files as $file) { /* @var $file \SplFileInfo */ $document = $this->getDocument($file->getPathname());