4 #include "athena/FileInfo.hpp" 16 explicit Dir(
const std::string& path);
18 std::string absolutePath()
const;
19 static inline std::string absolutePath(
const std::string& path)
20 {
return Dir(path).absolutePath(); }
23 static bool isDir(
const std::string dir)
24 {
return Dir(dir).isDir(); }
26 std::vector<FileInfo> files()
const;
28 bool cd(
const std::string& path);
29 bool rm(
const std::string& path);
31 static bool mkdir(
const std::string& dir, mode_t mode = 0755);
32 static bool mkpath(
const std::string& path, mode_t mode = 0755);