16 using boost::filesystem::path;
36 return fPath.string();
51 path newPath(strPath);
52 if (! newPath.is_absolute())
54 newPath = absolute(newPath);
56 if (! exists(newPath))
61 if (! is_directory(newPath))
63 KTERROR(
dirlog,
"Path specified is not a directory: " << strPath);
70 if (access(strPath.c_str(), R_OK | W_OK) != -1)
74 else if (access(strPath.c_str(), R_OK))
::Nymph::KTLogger dirlog("KTCacheDirectory")
bool SetPath(const std::string &strPath)
KTLOGGER(applog, "KTApplication")
bool GetPathExists() const
boost::filesystem::path fPath
const std::string & GetPath() const
Contains the logger class and macros, based on Kasper's KLogger class.