[boost][filesystem] Rename throws exception if target file exists

I need to achieve an atomic move to replace an existing file. Is there anyway to do this using boost::filesystem? I thought rename would do this but it throws the following exception: " boost::filesystem::rename: File exists:" when the target file exists. -Sanjit

I doubt that is possible. You most likely need utilize some system libraries for such special requirements. BR Vinzenz Feenstra Sent from my BlackBerry® smartphone -----Original Message----- From: Sanjit Jhala <sjhalaz@gmail.com> Date: Sat, 8 May 2010 09:14:38 To: <boost-users@lists.boost.org> Subject: [Boost-users] [boost][filesystem] Rename throws exception if target file exists _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Sanjit Jhala
-
Vinzenz Feenstra