function is_file($path) {

        $item = $this->gpi($path);

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

        $item = $this->gpi($path);

        if ($item === false) {
            return false;
        } else {
            return ($item['resourcetype'] != 'collection');
        }
    }
function is_file ( $ path ) { $ item = $ this -> gpi ( $ path ) ; if ( $ item === false ) { return false ; } else { return ( $ item [ 'resourcetype' ] != 'collection' ) ; } }
Public method is_file

Gathers whether a path points to a file or not.

@param string path
@return bool true or false
Public method is_file