![]() ![]() ![]() Files and Directory Contentsĭirectories contain a number of entries, representing files, directories, and symbolic links. The refresh() function re-reads the directory's data from disk. You can test for the presence of a directory with a given name by using exists(), and the properties of a directory can be tested with isReadable(), isAbsolute(), isRelative(), and isRoot(). cd(".") is equivalent to cdUp().ĭirectories can be created with mkdir(), renamed with rename(), and removed with rmdir(). The cdUp() function changes the directory of the QDir object so that it refers to its parent directory i.e. When cd() is called with the name of an existing directory, the QDir object changes directory so that it represents that directory instead. The path for a directory can also be changed with the cd() and cdUp() functions, both of which operate like familiar shell commands. SetPath(const std::filesystem::path & path) SetNameFilters(const QStringList & nameFilters) Rename(const QString & oldName, const QString & newName) ![]() RelativeFilePath(const QString & fileName) const Mkdir(const QString & dirName, QFile::Permissions permissions) const IsEmpty(QDir::Filters filters = Filters(AllEntries | NoDotAndDotDot)) const QDir(const QString & path, const QString & nameFilter, QDir::SortFlags sort = SortFlags(Name | IgnoreCase), QDir::Filters filters = AllEntries)ĪbsoluteFilePath(const QString & fileName) constĮntryInfoList(const QStringList & nameFilters, QDir::Filters filters = NoFilter, QDir::SortFlags sort = NoSort) constĮntryInfoList(QDir::Filters filters = NoFilter, QDir::SortFlags sort = NoSort) constĮntryList(const QStringList & nameFilters, QDir::Filters filters = NoFilter, QDir::SortFlags sort = NoSort) constĮntryList(QDir::Filters filters = NoFilter, QDir::SortFlags sort = NoSort) const QDir(const std::filesystem::path & path, const QString & nameFilter, QDir::SortFlags sort = SortFlags(Name | IgnoreCase), QDir::Filters filters = AllEntries) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |