function is_dir($path) {

        // be sure path is utf-8
        $item = $this->gpi($path);

        if ($item === false) {
            return false;
        } else {
            return ($item['resourcetype'] == 'collection');
        }
    }
function is_dir($path) {

        // be sure path is utf-8
        $item = $this->gpi($path);

        if ($item === false) {
            return false;
        } else {
            return ($item['resourcetype'] == 'collection');
        }
    }
function is_dir ( $ path ) { // be sure path is utf-8 $ item = $ this -> gpi ( $ path ) ; if ( $ item === false ) { return false ; } else { return ( $ item [ 'resourcetype' ] == 'collection' ) ; } }
Public method is_dir

Gather whether a path points to a directory
@param string path
return bool true or false
Public method is_dir