Opened 6 years ago

Last modified 6 years ago

#12879 new Bugs

boost::filesystem::rename could result in copy instead of rename (windows)

Reported by: anonymous Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.60.0 Severity: Problem
Keywords: Cc: miroslav.suk@…

Description

caused by https://svn.boost.org/trac/boost/ticket/6809

from msdn https://msdn.microsoft.com/en-us/library/windows/desktop/aa365240(v=vs.85).aspx If the file is successfully copied to a different volume and the original file is unable to be deleted, the function succeeds leaving the source file intact.

rename should produce error when source file can't be erased.

Change History (2)

comment:1 by Mirek Suk <miroslav.suk@…>, 6 years ago

Cc: miroslav.suk@… added

comment:2 by John Maddock, 6 years ago

Component: Nonefilesystem
Owner: set to Beman Dawes
Note: See TracTickets for help on using tickets.