helpers.cpp: Add cp() function

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5198a13282
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-03 (Sat, 03 Sep 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2016-09-03 21:14:57 +02:00
parent d6304e8ef7
commit d8e156217f
2 changed files with 111 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ class CFileHelpers
static CFileHelpers* getInstance();
bool doCopyFlag;
bool cp(const char *Src, const char *Dst, const char *Flags="");
bool copyFile(const char *Src, const char *Dst, mode_t forceMode=0);
bool copyDir(const char *Src, const char *Dst, bool backupMode=false);
static bool createDir(std::string& Dir, mode_t mode = 755);