bool Mover::do_copy(FileName const & from, FileName const & to,
string const &) const
{
- return from.copyTo(to);
+ return from.copyTo(to, true);
}
FileName const out_file = makeAbsPath(database + ".bib",
buffer.masterBuffer()->temppath());
- bool const success = in_file.copyTo(out_file);
+ bool const success = in_file.copyTo(out_file, true);
if (!success) {
lyxerr << "Failed to copy '" << in_file
<< "' to '" << out_file << "'"
base = removeExtension(in_file.mangledFilename());
FileName const out_file(makeAbsPath(base + ".bst",
buffer.masterBuffer()->temppath()));
- bool const success = in_file.copyTo(out_file);
+ bool const success = in_file.copyTo(out_file, true);
if (!success) {
lyxerr << "Failed to copy '" << in_file
<< "' to '" << out_file << "'"
unsigned long const checksum_out = writefile.checksum();
if (checksum_in != checksum_out) {
- if (!included_file.copyTo(writefile)) {
+ if (!included_file.copyTo(writefile, true)) {
// FIXME UNICODE
LYXERR(Debug::LATEX,
to_utf8(bformat(_("Could not copy the file\n%1$s\n"