MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / copyFile

Method copyFile

src/Backups/BackupIO_Disk.cpp:154–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void BackupWriterDisk::copyFile(const String & destination, const String & source, size_t /*size*/)
155{
156 LOG_TRACE(log, "Copying file inside backup from {} to {} ", source, destination);
157 auto dest_file_path = root_path / destination;
158 auto src_file_path = root_path / source;
159 disk->createDirectories(dest_file_path.parent_path());
160 disk->copyFile(src_file_path, *disk, dest_file_path, read_settings, write_settings);
161}
162
163}

Callers 2

copyFileToDiskMethod · 0.45
copyFileFromDiskMethod · 0.45

Calls 2

parent_pathMethod · 0.80
createDirectoriesMethod · 0.45

Tested by

no test coverage detected