4 #include "Athena/FileInfo.hpp"
12 explicit Dir(
const std::string& path);
14 std::string absolutePath()
const;
15 static inline std::string absolutePath(
const std::string& path)
16 {
return Dir(path).absolutePath(); }
19 static bool isDir(
const std::string dir)
20 {
return Dir(dir).isDir(); }
22 std::vector<FileInfo> files()
const;
24 bool cd(
const std::string& path);
25 bool rm(
const std::string& path);
27 static bool mkdir(
const std::string& dir, mode_t mode = 0755);
28 static bool mkpath(
const std::string& path, mode_t mode = 0755);