MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CopyFile

Method CopyFile

tensorflow/core/platform/env.cc:286–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286Status Env::CopyFile(const string& src, const string& target) {
287 FileSystem* src_fs;
288 FileSystem* target_fs;
289 TF_RETURN_IF_ERROR(GetFileSystemForFile(src, &src_fs));
290 TF_RETURN_IF_ERROR(GetFileSystemForFile(target, &target_fs));
291 if (src_fs == target_fs) {
292 return src_fs->CopyFile(src, target);
293 }
294 return FileSystemCopyFile(src_fs, src, target_fs, target);
295}
296
297string Env::GetExecutablePath() {
298 char exe_path[PATH_MAX] = {0};

Callers 3

copy_v2Function · 0.45
LoadExistFileMethod · 0.45

Calls 1

FileSystemCopyFileFunction · 0.85

Tested by

no test coverage detected