Commit 7cd7e313 authored by bapi_22's avatar bapi_22 Committed by RenatoG
Browse files

Issue #2908518 by bapi_22, RenatoG: Removed deprecated method drupal_rmdir() from codebase

parent 6a0932d0
......@@ -564,7 +564,7 @@ function xmlsitemap_directory_move($old_dir, $new_dir, $replace = FILE_EXISTS_RE
}
// The remove the directory.
$success &= drupal_rmdir($old_dir);
$success &= \Drupal::service('file_system')->rmdir($old_dir);
return $success;
}
......@@ -596,7 +596,7 @@ function _xmlsitemap_delete_recursive($path, $delete_root = FALSE) {
file_unmanaged_delete_recursive($entry_path, NULL);
}
$dir->close();
return $delete_root ? drupal_rmdir($path) : TRUE;
return $delete_root ? \Drupal::service('file_system')->rmdir($path) : TRUE;
}
return file_unmanaged_delete($path);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment