| 569 | #endif |
| 570 | |
| 571 | bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest) |
| 572 | { |
| 573 | #ifdef WIN32 |
| 574 | return MoveFileExA(src.string().c_str(), dest.string().c_str(), |
| 575 | MOVEFILE_REPLACE_EXISTING) != 0; |
| 576 | #else |
| 577 | int rc = std::rename(src.string().c_str(), dest.string().c_str()); |
| 578 | return (rc == 0); |
| 579 | #endif /* WIN32 */ |
| 580 | } |
| 581 | |
| 582 | /** |
| 583 | * Ignores exceptions thrown by Boost's create_directory if the requested directory exists. |
no outgoing calls
no test coverage detected