public static findFiles ( $masks ) : self | ||
return | self |
public static function findFiles(...$masks)
{
return (new static())->select(is_array($masks[0]) ? $masks[0] : $masks, 'isFile');
}
public function beforeRender() { $dir = $this->getAbsoluteDirectory(); $this->template->rootDir = $this->getRoot(); $this->template->rootDirProvider = $this->rootDir; $this->template->fileSystemCurrent = Nette\Utils\Finder::findFiles('*')->in($dir); }