Ejemplo n.º 1
0
 /**
  * Returns true if the directory <i>$path</i> is relative; otherwise returns 
  * false. (Under Unix a path is relative if it does not start with a "/").
  * 
  * @param string $path
  * @return boolean
  */
 public function isRelativePath($path)
 {
     MDataType::mustBeString($path);
     $fileInfo = new MFileInfo($path);
     return $fileInfo->isAbsolute() === false;
 }