libcamgm
Namespaces | Functions
PathUtils.hpp File Reference

LiMaL path related utilities. More...

#include <ca-mgm/config.h>
#include <ca-mgm/PathName.hpp>
#include <list>

Go to the source code of this file.

Namespaces

 ca_mgm
 
 ca_mgm::path
 The LiMaL path utility namespace.
 

Functions

int ca_mgm::path::createDir (const PathName &path, mode_t mode=0755)
 Create a directory. More...
 
int ca_mgm::path::createDirRecursive (const PathName &path, mode_t mode=0755)
 
int ca_mgm::path::removeDir (const PathName &path)
 Remove a directory. More...
 
int ca_mgm::path::removeDirRecursive (const PathName &path)
 Remove a directory recursively. More...
 
int ca_mgm::path::copyDir (const PathName &srcPath, const PathName &destPath)
 
int ca_mgm::path::readDir (std::list< std::string > &retlist, const PathName &path, bool dots)
 
int ca_mgm::path::removeFile (const PathName &path)
 
int ca_mgm::path::moveFile (const PathName &oldPath, const PathName &newPath)
 
int ca_mgm::path::copyFile (const PathName &file, const PathName &dest)
 
int ca_mgm::path::symLink (const PathName &oldPath, const PathName &newPath)
 
int ca_mgm::path::changeMode (const PathName &path, mode_t mode)
 

Detailed Description

LiMaL path related utilities.

Todo:

Review this file/classes.

Reimplement functions in PathUtils to not to execute commands!