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

Function garrow_file_system_copy_file

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

* garrow_file_system_copy_file: * @file_system: A #GArrowFileSystem. * @src: The path of the source file. * @dest: The path of the destination. * @error: (nullable): Return location for a #GError or %NULL. * * Copy a file. * If the destination exists and is a directory, an error is returned. * Otherwise, it is replaced. * * Returns: %TRUE on success, %FALSE if there was an error. * * S

Source from the content-addressed store, hash-verified

938 * Since: 0.17.0
939 */
940gboolean
941garrow_file_system_copy_file(GArrowFileSystem *file_system,
942 const gchar *src,
943 const gchar *dest,
944 GError **error)
945{
946 auto arrow_file_system = garrow_file_system_get_raw(file_system);
947 auto status = arrow_file_system->CopyFile(src, dest);
948 return garrow::check(error, status, "[file-system][copy-file]");
949}
950
951/**
952 * garrow_file_system_open_input_stream:

Callers

nothing calls this directly

Calls 3

checkFunction · 0.70
CopyFileMethod · 0.45

Tested by

no test coverage detected