deleteFile() публичный Метод

Delete the file at the given path
public deleteFile ( string $filePath ) : void
$filePath string Path of the file to delete
Результат void
Пример #1
0
 /**
  * Closes the writer and attempts to cleanup all files that were
  * created during the writing process (temp files & final file).
  *
  * @return void
  */
 private function closeAndAttemptToCleanupAllFiles()
 {
     // close the writer, which should remove all temp files
     $this->close();
     // remove output file if it was created
     if ($this->globalFunctionsHelper->file_exists($this->outputFilePath)) {
         $outputFolderPath = dirname($this->outputFilePath);
         $fileSystemHelper = new FileSystemHelper($outputFolderPath);
         $fileSystemHelper->deleteFile($this->outputFilePath);
     }
 }