CFileHelpers::copyFile: Rewrite mode handling

This commit is contained in:
M. Liebmann
2016-09-03 11:45:02 +02:00
parent 38470a8a80
commit 64b5d36c52
2 changed files with 28 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ class CFileHelpers
static CFileHelpers* getInstance();
bool doCopyFlag;
bool copyFile(const char *Src, const char *Dst, mode_t mode);
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);
static bool createDir(const char *Dir, mode_t mode = 755){std::string dir = std::string(Dir);return createDir(dir, mode);}