Nette\Utils\Finder::from PHP Method

from() public method

Searchs recursively from the given folder(s).
public from ( $paths ) : self
return self
    public function from(...$paths)
    {
        if ($this->paths) {
            throw new Nette\InvalidStateException('Directory to search has already been specified.');
        }
        $this->paths = is_array($paths[0]) ? $paths[0] : $paths;
        $this->cursor =& $this->exclude;
        return $this;
    }