29 #ifndef CA_MGM_PATH_UTILS_HPP
30 #define CA_MGM_PATH_UTILS_HPP
32 #include <ca-mgm/config.h>
37 namespace CA_MGM_NAMESPACE
63 int createDir(
const PathName &path, mode_t mode = 0755);
120 int copyDir(
const PathName& srcPath,
const PathName& destPath);
129 int readDir(std::list<std::string> & retlist,
130 const PathName& path,
bool dots);
144 int moveFile(
const PathName& oldPath,
const PathName& newPath);
152 int copyFile(
const PathName& file,
const PathName& dest);
160 int symLink(
const PathName& oldPath,
const PathName& newPath);
167 int changeMode(
const PathName& path, mode_t mode);