32 bool is_directory()
const;
33 bool is_regular_file()
const;
34 bool is_symlink()
const;
35 std::string path()
const;
40 std::unique_ptr<Private> p;
47 using difference_type = std::ptrdiff_t;
50 using iterator_category = std::input_iterator_tag;
70 std::unique_ptr<Private> p;
78 Dir(
const std::string &path);
80 Dir &operator=(
const Dir &d);
84 void setPath(
const std::string &path);
85 std::string path()
const;
89 bool isEmpty(
const std::string subdir)
const;
91 std::string filePath(
const std::string &path,
bool acceptsAbsPath=
true)
const;
92 bool exists(
const std::string &path,
bool acceptsAbsPath=
true)
const;
93 bool mkdir(
const std::string &path,
bool acceptsAbsPath=
true)
const;
94 bool rmdir(
const std::string &path,
bool acceptsAbsPath=
true)
const;
95 bool remove(
const std::string &path,
bool acceptsAbsPath=
true)
const;
96 bool rename(
const std::string &orgName,
const std::string &newName,
97 bool acceptsAbsPath=
true)
const;
98 bool copy(
const std::string &src,
const std::string &dest,
bool acceptsAbsPath=
true)
const;
99 std::string absPath()
const;
101 bool isRelative()
const;
103 static bool isRelativePath(
const std::string &path);
104 static std::string currentDirPath();
105 static bool setCurrent(
const std::string &path);
106 static std::string cleanDirPath(
const std::string &path);
110 std::unique_ptr<Private> p;
Class representing a directory in the file system.
Definition: dir.h:74