original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Public method gpi
  
  Get's path information from webdav server for one element.
  
  @param string path
  @return array dirinfo. false on error
docstring_tokens: Public method gpi