function rmdirr in Video 6.4
Same name and namespace in other branches
- 6.5 video.module \rmdirr()
- 7 video.module \rmdirr()
Utility function to remove all files and directories recursively.
2 calls to rmdirr()
- video_ffmpeg::convert_video in transcoders/
video_ffmpeg.inc - video_file_delete in ./
video.module - Implementation of hook_file_delete().
File
- ./
video.module, line 451 - video.module
Code
function rmdirr($dir) {
if ($objs = glob($dir . "/*")) {
foreach ($objs as $obj) {
is_dir($obj) ? rmdirr($obj) : unlink($obj);
}
}
@rmdir($dir);
}