Ejemplo n.º 1
0
 /**
  * Returns true if the file called <i>$name</i> exists; otherwise returns false.<br />
  * If <i>$name</i> is null the <i>$path</i> passed to the construct will be used.
  * 
  * @param string|null $name
  * @return boolean
  */
 public function exists($name = null)
 {
     MDataType::mustBeNullableString($name);
     if ($name != null) {
         $fileInfo = new MFileInfo($name);
         return $fileInfo->exists();
     }
     return $this->fileInfo->exists();
 }