| 660 | #endif |
| 661 | |
| 662 | bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest) |
| 663 | { |
| 664 | #ifdef WIN32 |
| 665 | return MoveFileExA(src.string().c_str(), dest.string().c_str(), |
| 666 | MOVEFILE_REPLACE_EXISTING) != 0; |
| 667 | #else |
| 668 | int rc = std::rename(src.string().c_str(), dest.string().c_str()); |
| 669 | return (rc == 0); |
| 670 | #endif /* WIN32 */ |
| 671 | } |
| 672 | |
| 673 | /** |
| 674 | * Ignores exceptions thrown by Boost's create_directory if the requested directory exists. |
no outgoing calls
no test coverage detected