function user_delete_scandir in User Delete 6
Compat function for scandir() with php4 or php5
1 call to user_delete_scandir()
- user_delete_backup_remove_dir in ./
user_delete.module - Recursive delete a folder with files
File
- ./
user_delete.module, line 317 - User delete - Let users delete their own account.
Code
function user_delete_scandir($dir) {
if (function_exists('scandir')) {
return scandir($dir);
}
else {
$dh = opendir($dir);
while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
}
return $files;
}
}