* 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
| 938 | * Since: 0.17.0 |
| 939 | */ |
| 940 | gboolean |
| 941 | garrow_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: |
nothing calls this directly
no test coverage detected