function devel_empty_dir in Devel 7
Deletes all files in a dir.
1 call to devel_empty_dir()
- devel_query_put_contents in ./
devel.module - Writes the variables information to a file.
File
- ./
devel.module, line 2209 - This module holds functions useful for Drupal development.
Code
function devel_empty_dir($dir) {
foreach (new DirectoryIterator($dir) as $file_info) {
if ($file_info
->isFile()) {
unlink($file_info
->getPathname());
}
}
}