mirror of
https://github.com/smarty-php/smarty.git
synced 2026-08-24 22:23:29 +02:00
22 lines
769 B
PHP
22 lines
769 B
PHP
<?php
|
|
/*
|
|
* This file is part of the Smarty PHPUnit tests.
|
|
*
|
|
*/
|
|
foreach(new RecursiveIteratorIterator(new RecursiveDirectoryIterator(dirname(__FILE__), FilesystemIterator::SKIP_DOTS), RecursiveIteratorIterator::CHILD_FIRST) as $path) {
|
|
$p = $path->getPathname();
|
|
if ((strpos($p, '\coverage') !== false) || ((strpos($p, '\templates_c') === false) && (strpos($p, '\cache') === false))) {
|
|
continue;
|
|
}
|
|
$p = $path->getPathname();
|
|
$i = 1;
|
|
//$path->isDir() && !$path->isLink() ? rmdir($path->getPathname()) : unlink($path->getPathname());
|
|
if ($path->isDir() && !$path->isLink()) {
|
|
touch($path->getPathname() . '/dummy.txt');
|
|
} else {
|
|
unlink($path->getPathname());
|
|
touch($path->getPath() . '/dummy.txt');
|
|
}
|
|
}
|
|
|