* garrow_file_system_create: * @uri: An URI to specify file system with options. If you only have an * absolute path, g_filename_to_uri() will help you. * @error: (nullable): Return location for a #GError or %NULL. * * This is a factory function to create a specific #GArrowFileSystem * object. * * Returns: (nullable) (transfer full): The newly created file system * that is an object o
| 629 | * Since: 3.0.0 |
| 630 | */ |
| 631 | GArrowFileSystem * |
| 632 | garrow_file_system_create(const gchar *uri, GError **error) |
| 633 | { |
| 634 | auto arrow_file_system_result = arrow::fs::FileSystemFromUri(uri); |
| 635 | if (garrow::check(error, arrow_file_system_result, "[file-system][create]")) { |
| 636 | auto arrow_file_system = *arrow_file_system_result; |
| 637 | return garrow_file_system_new_raw(&arrow_file_system); |
| 638 | } else { |
| 639 | return NULL; |
| 640 | } |
| 641 | } |
| 642 | |
| 643 | /** |
| 644 | * garrow_file_system_get_type_name: |
nothing calls this directly
no test coverage detected