src/Path/Path.php
public function dirs($resource, $recursive = false, $filter = null)
    {
        return $this->ls($resource, self::LS_MODE_DIR, $recursive, $filter);
    }
public function dirs($resource, $recursive = false, $filter = null)
    {
        return $this->ls($resource, self::LS_MODE_DIR, $recursive, $filter);
    }
public function dirs ( $ resource , $ recursive = false , $ filter = null ) { return $ this -> ls ( $ resource , self :: LS_MODE_DIR , $ recursive , $ filter ) ; }
Get a list of directories from a resource.

@param string $resource
@param bool $recursive
@param null $filter
@return mixed
Get a list of directories from a resource .