function gpi($path) {

        // split path by last "/"
        $path = rtrim($path, "/");
        $item = basename($path);
        $dir  = dirname($path);

        $list = $this->ls($dir);

        // be sure it is an array
        if (is_array($list)) {
            foreach($list as $e) {

                $fullpath = urldecode($e['href']);
                $filename = basename($fullpath);

                if ($filename == $item && $filename != "" and $fullpath != $dir."/") {
                    return $e;
                }
            }
        }
        return false;
    }
function gpi($path) {

        // split path by last "/"
        $path = rtrim($path, "/");
        $item = basename($path);
        $dir  = dirname($path);

        $list = $this->ls($dir);

        // be sure it is an array
        if (is_array($list)) {
            foreach($list as $e) {

                $fullpath = urldecode($e['href']);
                $filename = basename($fullpath);

                if ($filename == $item && $filename != "" and $fullpath != $dir."/") {
                    return $e;
                }
            }
        }
        return false;
    }
function gpi ( $ path ) { // split path by last "/" $ path = rtrim ( $ path , "/" ) ; $ item = basename ( $ path ) ; $ dir = dirname ( $ path ) ; $ list = $ this -> ls ( $ dir ) ; // be sure it is an array if ( is_array ( $ list ) ) { foreach ( $ list as $ e ) { $ fullpath = urldecode ( $ e [ 'href' ] ) ; $ filename = basename ( $ fullpath ) ; if ( $ filename == $ item && $ filename != "" and $ fullpath != $ dir . "/" ) { return $ e ; } } } return false ; }
Public method gpi

Get's path information from webdav server for one element.

@param string path
@return array dirinfo. false on error
Public method gpi