/** * Is specified directory is in excluded list? * @param string $directory Name of the directory * @return bool TRUE if it in the list, FALSE otherwise. */ public function isExcluded($directory) { $excluded = $this->getConfig('exclude'); foreach ($this->filesystem->splitExcludedDirectories($excluded) as $excludedDirectory) { if (strtolower($excludedDirectory) === strtolower($directory)) { return true; } } return false; }