* 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 */
| 879 | * Since: 0.17.0 |
| 880 | */ |
| 881 | gboolean |
| 882 | garrow_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: |
nothing calls this directly
no test coverage detected