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

Function garrow_file_system_create

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

* 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

Source from the content-addressed store, hash-verified

629 * Since: 3.0.0
630 */
631GArrowFileSystem *
632garrow_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:

Callers

nothing calls this directly

Calls 3

FileSystemFromUriFunction · 0.85
checkFunction · 0.70

Tested by

no test coverage detected