Ejemplo n.º 1
0
 /**
  * Returns $path with added terminating slash (corrected for Windows or other OS).
  *
  * @param string $path Path to check
  * @return string Path with ending slash
  * @access public
  * @static
  */
 function slashTerm($path)
 {
     if (XoopsFolderHandler::isSlashTerm($path)) {
         return $path;
     }
     return $path . XoopsFolderHandler::correctSlashFor($path);
 }
Ejemplo n.º 2
0
 /**
  * Returns the full path of the File.
  *
  * @return string Full path to file
  * @access public
  */
 public function pwd()
 {
     return $this->folder->slashTerm($this->folder->pwd()) . $this->name;
 }