diff --git a/src/JamesMoss/Flywheel/Repository.php b/src/JamesMoss/Flywheel/Repository.php index 0ae62f7..c4463d4 100644 --- a/src/JamesMoss/Flywheel/Repository.php +++ b/src/JamesMoss/Flywheel/Repository.php @@ -251,7 +251,8 @@ public function getFilename($id) public function getAllFiles() { $ext = $this->formatter->getFileExtension(); - $files = glob($this->path . DIRECTORY_SEPARATOR . '*.' . $ext); + $filesystemIterator = new \FilesystemIterator($this->path, \FilesystemIterator::SKIP_DOTS); + $files = new \RegexIterator($filesystemIterator, "/\\.{$ext}$/"); return $files; }