浏览该文件的文档.
31 std::string
path()
const;
36 std::unique_ptr<Private>
p;
64 std::unique_ptr<Private>
p;
77 std::string
path()
const;
81 bool isEmpty(
const std::string subdir)
const;
83 std::string
filePath(
const std::string &
path,
bool acceptsAbsPath=
true)
const;
84 bool exists(
const std::string &
path,
bool acceptsAbsPath=
true)
const;
85 bool mkdir(
const std::string &
path,
bool acceptsAbsPath=
true)
const;
86 bool rmdir(
const std::string &
path,
bool acceptsAbsPath=
true)
const;
87 bool remove(
const std::string &
path,
bool acceptsAbsPath=
true)
const;
88 bool rename(
const std::string &orgName,
const std::string &newName,
89 bool acceptsAbsPath=
true)
const;
90 bool copy(
const std::string &src,
const std::string &dest,
bool acceptsAbsPath=
true)
const;
102 std::unique_ptr<Private>
p;
static std::string currentDirPath()
std::unique_ptr< Private > p
bool copy(const std::string &src, const std::string &dest, bool acceptsAbsPath=true) const
std::string filePath(const std::string &path, bool acceptsAbsPath=true) const
bool remove(const std::string &path, bool acceptsAbsPath=true) const
Class representing a directory in the file system
bool is_regular_file() const
std::unique_ptr< Private > p
const value_type * operator->() const
friend DirIterator begin(DirIterator it) noexcept
std::input_iterator_tag iterator_category
friend bool operator!=(const DirIterator &it1, const DirIterator &it2)
static bool isRelativePath(const std::string &path)
friend bool operator==(const DirIterator &it1, const DirIterator &it2)
bool rename(const std::string &orgName, const std::string &newName, bool acceptsAbsPath=true) const
std::string absPath() const
const value_type & operator*() const
static bool setCurrent(const std::string &path)
DirIterator & operator=(const DirIterator &it)
bool is_directory() const
bool isEmpty(const std::string subdir) const
Dir & operator=(const Dir &d)
std::ptrdiff_t difference_type
void setPath(const std::string &path)
DirIterator iterator() const
bool rmdir(const std::string &path, bool acceptsAbsPath=true) const
friend DirIterator end(const DirIterator &) noexcept
bool mkdir(const std::string &path, bool acceptsAbsPath=true) const
static std::string cleanDirPath(const std::string &path)
std::unique_ptr< Private > p