]> git.lyx.org Git - features.git/blob - src/support/rename.C
97c4ca0562348920f7a8ccc4a5d78a6a8d5f54c5
[features.git] / src / support / rename.C
1 #include <config.h>
2
3 #include <cstdio>
4
5 #include "support/lyxlib.h"
6
7 bool lyx::rename(string const & from, string const & to)
8 {
9         if (::rename(from.c_str(), to.c_str()) == -1)
10                 return lyx::copy(from, to);
11         return true;
12 }