MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / CopyFileProgress

Function CopyFileProgress

Goldleaf/source/fs/fs_Common.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 void CopyFileProgress(const std::string &path, const std::string &new_path, CopyFileStartCallback start_cb, CopyFileProgressCallback prog_cb) {
33 auto exp = GetExplorerForPath(path);
34 auto new_exp = GetExplorerForPath(new_path);
35
36 auto sd_exp = GetSdCardExplorer();
37 const auto file_size = exp->GetFileSize(path);
38 if((file_size >= 4_GB) && (new_exp == sd_exp)) {
39 CreateConcatenationFile(new_path);
40 }
41 exp->CopyFileProgress(path, new_path, start_cb, prog_cb);
42 }
43
44 void CopyDirectoryProgress(const std::string &dir, const std::string &new_dir, CopyDirectoryStartCallback start_cb, CopyDirectoryFileStartCallback file_start_cb, CopyDirectoryFileProgressCallback file_prog_cb) {
45 auto exp = GetExplorerForPath(dir);

Callers 1

StartExportMethod · 0.85

Calls 5

GetExplorerForPathFunction · 0.85
GetSdCardExplorerFunction · 0.85
CreateConcatenationFileFunction · 0.85
CopyFileProgressMethod · 0.80
GetFileSizeMethod · 0.45

Tested by

no test coverage detected