| 318 | } |
| 319 | |
| 320 | Status PosixFileSystem::RenameFile(const string& src, const string& target) { |
| 321 | Status result; |
| 322 | if (rename(TranslateName(src).c_str(), TranslateName(target).c_str()) != 0) { |
| 323 | result = IOError(src, errno); |
| 324 | } |
| 325 | return result; |
| 326 | } |
| 327 | |
| 328 | Status PosixFileSystem::CopyFile(const string& src, const string& target) { |
| 329 | string translated_src = TranslateName(src); |