Boost logo

Boost Users :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2005-03-23 12:17:41


On Wed, 23 Mar 2005 11:27:05 +0100 (MET), Oliver Kowalke
<oliver.kowalke_at_[hidden]> wrote:
> Hello,
> is boost::filesystem::copy_file reliable?
> If the os indicates some failure during copy of a file (for instance no more
> space available) the destination file is removed or left in an incomplete
> state?

Looking at the code, in the case of any sort of error condition (aside
from failure to open the destination file for writing), copy_file will
leave an incomplete destination file in place.

-- 
Caleb Epstein
caleb dot epstein at gmail dot com

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