#include "Mover.h"
+#include "support/FileName.h"
#include "support/filetools.h"
#include "support/lstrings.h"
-#include "support/lyxlib.h"
#include "support/Systemcall.h"
#include <fstream>
bool Mover::copy(FileName const & from, FileName const & to) const
{
- return do_copy(from, to, to.absFilename());
-}
-
-
-bool Mover::do_copy(FileName const & from, FileName const & to,
- string const &) const
-{
- return from.copyTo(to, true);
+ return from.copyTo(to);
}
bool Mover::do_rename(FileName const & from, FileName const & to,
string const &) const
{
- return from.renameTo(to);
+ return from.moveTo(to);
}
string const & latex) const
{
if (command_.empty())
- return Mover::do_copy(from, to, latex);
+ return Mover::copy(from, to);
string command = libScriptSearch(command_);
command = subst(command, "$$i", quoteName(from.toFilesystemEncoding()));