MCPcopy Create free account
hub / github.com/apache/arrow / garrow_file_system_delete_files

Function garrow_file_system_delete_files

c_glib/arrow-glib/file-system.cpp:881–895  ·  view source on GitHub ↗

* garrow_file_system_delete_files: * @file_system: A #GArrowFileSystem. * @paths: (array length=n_paths): * The paths of the files to be delete. * @n_paths: The number of items in @paths. * @error: (nullable): Return location for a #GError or %NULL. * * Delete many files. * * Returns: %TRUE on success, %FALSE if there was an error. * * Since: 0.17.0 */

Source from the content-addressed store, hash-verified

879 * Since: 0.17.0
880 */
881gboolean
882garrow_file_system_delete_files(GArrowFileSystem *file_system,
883 const gchar **paths,
884 gsize n_paths,
885 GError **error)
886{
887 auto arrow_file_system = garrow_file_system_get_raw(file_system);
888 std::vector<std::string> arrow_paths;
889 arrow_paths.reserve(n_paths);
890 for (gsize i = 0; i < n_paths; ++i) {
891 arrow_paths.emplace_back(paths[i]);
892 }
893 auto status = arrow_file_system->DeleteFiles(arrow_paths);
894 return garrow::check(error, status, "[file-system][delete-files]");
895}
896
897/**
898 * garrow_file_system_move:

Callers

nothing calls this directly

Calls 5

emplace_backMethod · 0.80
DeleteFilesMethod · 0.80
checkFunction · 0.70
reserveMethod · 0.45

Tested by

no test coverage detected