|
Boost Users : |
Subject: [Boost-users] boost::filesystem::rename() documentation incorrect
From: Paul (elegant_dice_at_[hidden])
Date: 2009-09-25 03:59:01
Hi all,
this documentation is incorrect:
Otherwise, if to_p resolves to an existing file, it is removed.
This is from Boost 1.40.0, and yet the code for rename() calls
rename_api() which then does the following:
       if ( fs::exists( status_api( to, dummy ) ) )
         return error_code( EEXIST, system_category );
ie, if to_p resolves to an existing file, it will always return/throw
an error... NOT remove the existing file, as was documented.
Or am I reading things wrong?
cheers
Paul
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net