| 272 | } |
| 273 | |
| 274 | Status Env::RenameFile(const string& src, const string& target) { |
| 275 | FileSystem* src_fs; |
| 276 | FileSystem* target_fs; |
| 277 | TF_RETURN_IF_ERROR(GetFileSystemForFile(src, &src_fs)); |
| 278 | TF_RETURN_IF_ERROR(GetFileSystemForFile(target, &target_fs)); |
| 279 | if (src_fs != target_fs) { |
| 280 | return errors::Unimplemented("Renaming ", src, " to ", target, |
| 281 | " not implemented"); |
| 282 | } |
| 283 | return src_fs->RenameFile(src, target); |
| 284 | } |
| 285 | |
| 286 | Status Env::CopyFile(const string& src, const string& target) { |
| 287 | FileSystem* src_fs; |
no test coverage detected