You are here

function rmdirr in Video 7

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

File

./video.module, line 664

Code

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