| 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); |
no test coverage detected