public function ignoreDotFiles($ignoreDotFiles) { if ($ignoreDotFiles) { $this->ignore |= static::IGNORE_DOT_FILES; } else { $this->ignore &= ~static::IGNORE_DOT_FILES; } return $this; }
/** * @return Finder */ protected function getSpool() { $filesystem = new Filesystem(); $finder = new Finder(); if ($filesystem->exists($this->spoolDir)) { $spool = $finder->ignoreDotFiles(true)->in($this->spoolDir)->files(); return $spool; } throw new \RuntimeException("Spool not found or empty: " . $this->spoolDir); }