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

Method CopyDirectoryProgress

Goldleaf/source/fs/fs_Explorer.cpp:183–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 }
182
183 void Explorer::CopyDirectoryProgress(const std::string &dir, const std::string &new_dir, CopyDirectoryStartCallback start_cb, CopyDirectoryFileStartCallback file_start_cb, CopyDirectoryFileProgressCallback file_prog_cb) {
184 u64 cur_done_size = 0;
185 const auto total_size = this->GetDirectorySize(dir);
186 start_cb(total_size);
187
188 DoCopyDirectoryProgress(this, cur_done_size, total_size, dir, new_dir, file_start_cb, file_prog_cb);
189 }
190
191 bool Explorer::IsFileBinary(const std::string &path) {
192 const auto full_path = this->MakeFull(path);

Callers 3

StartCopyMethod · 0.80
CopyDirectoryProgressFunction · 0.80

Calls 2

GetDirectorySizeMethod · 0.95
DoCopyDirectoryProgressFunction · 0.85

Tested by

no test coverage detected