git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@91 d34b734f-a00e-4b39-a726-e4eeb87269abadeniz_1
| void FileOps::moveFile(std::string const &from, std::string const &to) { | void FileOps::moveFile(std::string const &from, std::string const &to) { | ||||
| #ifdef _WIN32 | #ifdef _WIN32 | ||||
| if (MoveFile(from.c_str(), to.c_str()) == 0) { | |||||
| if (MoveFileEx(from.c_str(), to.c_str(), MOVEFILE_REPLACE_EXISTING) == 0) { | |||||
| #else | #else | ||||
| if (rename(from.c_str(), to.c_str()) != 0) { | if (rename(from.c_str(), to.c_str()) != 0) { | ||||
| #endif | #endif |