24 public static function removeDirectory($directory)
26 $inner = new \RecursiveDirectoryIterator($directory, \FilesystemIterator::SKIP_DOTS);
27 $outer = new \RecursiveIteratorIterator($inner, \RecursiveIteratorIterator::SELF_FIRST);
30 foreach ($outer as
$file) {
31 if ($file->isFile()) {
37 $files = iterator_to_array($outer);
38 foreach (array_reverse(
$files) as $file) {
62 $directory = self::getTemporaryDirectory().DIRECTORY_SEPARATOR.uniqid(
'assetic_'.$prefix);
77 return tempnam(self::getTemporaryDirectory(),
'assetic_'.$prefix);
82 return realpath(sys_get_temp_dir());
static createTemporaryFile($prefix)
Creates a temporary file.
static getTemporaryDirectory()
static createThrowAwayDirectory($prefix)
Creates a throw-away directory.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file