Folder::child PHP Method

child() public method

Returns a subfolder object by path
public child ( $path ) : mixed
return mixed Directory
    public function child($path)
    {
        $root = $this->root . DS . str_replace('/', DS, $path);
        if (!is_dir($root)) {
            return false;
        }
        return new static($root);
    }