Boost C++ Libraries: Ticket #247: Filesystem bug with rename https://svn.boost.org/trac10/ticket/247 <pre class="wiki">There is a bug in the windows version of filesystem::rename. In the documentation it says: ----- Source: !is_directory() Target: is_directory() The source file is moved to the target directory. ---- The problem is that the function used "::MoveFileA" will either rename a file or a directory but it will not move a file to a directory. (Error "target already exists") To move a file, the filname must also be in the target path. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/247 Trac 1.4.3 beman_dawes Sun, 21 Mar 2004 20:49:51 GMT status changed https://svn.boost.org/trac10/ticket/247#comment:1 https://svn.boost.org/trac10/ticket/247#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=51042 Hum... I think the documented behavior is too complex. As you point out, it differs from the usual Windows behavior. It also differs from the POSIX behavior. I have changed the docs to reflect the actual (and simpler) behavior. I've also expanded the tests in operator_test.cpp to cover all cases, and tied each test case to the docs via comments. All tests are now passing. Thanks for the report, --Beman </pre> Ticket