Exemplo n.º 1
0
 /**
  * Delete a file
  */
 public function unlink($path)
 {
     if (!$this->initPath($path)) {
         return FALSE;
     }
     $filename = $this->getFileName();
     if (!$this->fileSystem->unlink($filename)) {
         trigger_error("{$path} is not a file", E_USER_WARNING);
         return FALSE;
     }
     return TRUE;
 }
Exemplo n.º 2
0
 public function tearDown()
 {
     FileSystem::unlink($this->tmpFile->getAbsolutePath());
 }