lyx_mirror/src/support/copy.C
Lars Gullik Bjønnes 83882f6d92 export patch from Dekel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1001 a592a061-630c-0410-9148-cb99ea01b6c8
2000-09-05 13:16:19 +00:00

16 lines
347 B
C

#include <config.h>
#include <stdio.h>
#include "support/lyxlib.h"
#include "LString.h"
#include "support/syscall.h"
#include "support/filetools.h"
bool lyx::copy(char const * from, char const * to)
{
string command = "cp " + QuoteName(from) + " " + QuoteName(to);
return Systemcalls().startscript(Systemcalls::System,
command) == 0;
}