3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS
15 #include "support/lyxlib.h"
17 bool lyx::rename(string const & from, string const & to)
20 lyx::unlink(to.c_str());
22 if (::rename(from.c_str(), to.c_str()) == -1)
23 if (lyx::copy(from, to)) {