function devel_empty_dir

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

Code

function devel_empty_dir($dir) {
    foreach (new DirectoryIterator($dir) as $file_info) {
        if ($file_info->isFile()) {
            unlink($file_info->getPathname());
        }
    }
}