You are here

function rmdirr in Video 6.5

Same name and namespace in other branches
  1. 6.4 video.module \rmdirr()
  2. 7 video.module \rmdirr()

Utility function to remove all files and directories recursively.

3 calls to rmdirr()
drupal::delete_video in filesystem/drupal.inc
Delete the video from the file system.
video_localcommand::convert_video in transcoders/video_localcommand.inc
Convert the given video.
video_s3::delete_video in plugins/video_s3/filesystem/video_s3.inc
Delete the video from the file system.

File

./video.module, line 511
Main file of the Video module.

Code

function rmdirr($dir) {
  if ($objs = glob($dir . "/*")) {
    foreach ($objs as $obj) {
      is_dir($obj) ? rmdirr($obj) : unlink($obj);
    }
  }
  @rmdir($dir);
}