You are here

function _lockr_rmtree in Lockr 7.2

1 call to _lockr_rmtree()
lockr_admin_migrate_submit in include/migrate_form.inc

File

include/migrate_form.inc, line 69
Form handlers for migrate admin settings.

Code

function _lockr_rmtree($path) {
  if (is_dir($path)) {
    foreach (scandir($path, SCANDIR_SORT_NONE) as $name) {
      if ($name === '.' || $name === '..') {
        continue;
      }
      _lockr_rmtree("{$path}/{$name}");
    }
  }
  unlink($path);
}