PHP Classes

File: scripts/rimraf.php

Recommend this page to a friend!
  Classes of Vladimir Gorej   FFmpeg PHP   scripts/rimraf.php   Download  
File: scripts/rimraf.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: FFmpeg PHP
Manipulate video files using the ffmpeg program
Author: By
Last change:
Date: 5 years ago
Size: 282 bytes
 

Contents

Class file image Download
<?php
require_once 'vendor/autoload.php';

use \
FilesystemHelper\FilesystemHelper;

try {
   
$toDelete = getcwd() . DIRECTORY_SEPARATOR . $argv[1];
   
FilesystemHelper::deleteR($toDelete, null);
   
rmdir($toDelete);
   
unlink($toDelete);
} catch (\
Exception $e) {
   
// pass
}