Opened 9 years ago
Last modified 9 years ago
#8939 new Bugs
boot filesystem error when copy-overwrite-the file to itself
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | filesystem |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | Cc: |
Description
I'm running RedHat. I tried to copy, and overwrite if existing file 'a' to itself.
namespace fs=boost::filesystem; fs::copyfile('a', 'a', fs::copy_option::overwrite_if_exist);
This clear the content of 'a', and giving me an empty file.
Note:
See TracTickets
for help on using tickets.
Let me make clear that I tried one without the dot '.' and the one with the dot
fs::copyfile('RESULT/a', './RESULT/a', fs::copy_option::overwrite_if_exist);