| 284 | } |
| 285 | |
| 286 | Status 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 | |
| 297 | string Env::GetExecutablePath() { |
| 298 | char exe_path[PATH_MAX] = {0}; |
no test coverage detected