PythonQt.QtCore.QDir · declarations 002
cd
cd(dirName: str) -> bool
X.cd(dirName) -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::cd(const QString \&dirName)
Changes the QDir's directory to dirName.
Returns true if the new directory exists; otherwise returns false. Note that the
logical cd() operation is not performed if the new directory does not exist.
Calling cd("..") is equivalent to calling cdUp().
See also cdUp(), isReadable(), exists(), and path().
Upstream PySide2 reference signatures (binding differences may apply):
cd(self, dirName: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#cd
cdUp
cdUp() -> bool
X.cdUp() -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::cdUp()
Changes directory by moving one directory up from the QDir's current directory.
Returns true if the new directory exists; otherwise returns false. Note that the
logical cdUp() operation is not performed if the new directory does not exist.
Note: On Android, this is not supported for content URIs. For more information, see DocumentFile.getParentFile().
See also cd(), isReadable(), exists(), and path().
Upstream PySide2 reference signatures (binding differences may apply):
cdUp(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#cdUp
cleanPath
cleanPath(path: str) -> str
X.cleanPath(path) -> str
Supplemental documentation: Qt 5 reference:
[static] QString QDir::cleanPath(const QString \&path)
Returns path with directory separators normalized (that is, platform-native separators converted to "/") and redundant ones removed, and "."s and ".."s resolved (as far as possible).
Symbolic links are kept. This function does not return the canonical path, but rather the simplest version of the input. For example, "./local" becomes "local", "local/../bin" becomes "bin" and "/local/usr/../bin" becomes "/local/bin".
See also absolutePath() and canonicalPath().
Upstream PySide2 reference signatures (binding differences may apply):
cleanPath(path: str) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#cleanPath
count
count() -> int
X.count() -> int
Supplemental documentation: Qt 5 reference:
uint QDir::count() const
Returns the total number of directories and files in the directory.
Equivalent to entryList().count().
See also operator[]() and entryList().
Upstream PySide2 reference signatures (binding differences may apply):
count(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#count
current
current() -> Any
X.current() -> PythonQt.QtCore.QDir
Supplemental documentation: Qt 5 reference:
[static] QDir QDir::current()
Returns the application's current directory.
The directory is constructed using the absolute path of the current directory, ensuring that its path() will be the same as its absolutePath().
See also currentPath(), setCurrent(), home(), root(), and temp().
Upstream PySide2 reference signatures (binding differences may apply):
current() -> PySide2.QtCore.QDir
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#current
currentPath
currentPath() -> str
X.currentPath() -> str
Supplemental documentation: Qt 5 reference:
[static] QString QDir::currentPath()
Returns the absolute path of the application's current directory. The current directory is the last directory set with QDir::setCurrent() or, if that was never called, the directory at which this application was started at by the parent process.
See also current(), setCurrent(), homePath(), rootPath(), tempPath(), and QCoreApplication::applicationDirPath().
Upstream PySide2 reference signatures (binding differences may apply):
currentPath() -> str
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#currentPath
dirName
dirName() -> str
X.dirName() -> str
Supplemental documentation: Qt 5 reference:
QString QDir::dirName() const
Returns the name of the directory; this is not the same as the path, e.g. a directory with the name "mail", might have the path "/var/spool/mail". If the directory has no name (e.g. it is the root directory) an empty string is returned.
No check is made to ensure that a directory with this name actually exists; but see exists().
See also path(), filePath(), absolutePath(), and absoluteFilePath().
Upstream PySide2 reference signatures (binding differences may apply):
dirName(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#dirName
drives
drives() -> tuple
X.drives() -> tuple
Supplemental documentation: Qt 5 reference:
[static] QFileInfoList QDir::drives()
Returns a list of the root directories on this system.
On Windows this returns a list of QFileInfo objects containing "C:/", "D:/", etc. This does not return drives with ejectable media that are empty. On other operating systems, it returns a list containing just one root directory (i.e. "/").
See also root() and rootPath().
Upstream PySide2 reference signatures (binding differences may apply):
drives() -> typing.List[PySide2.QtCore.QFileInfo]
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#drives
entryInfoList
entryInfoList(nameFilters: Any, filters: Any, sort: Any) -> tuple
X.entryInfoList(nameFilters, filters, sort) -> tuple
Supplemental documentation: Qt 5 reference:
QFileInfoList QDir::entryInfoList(const QStringList \&nameFilters, QDir::Filters filters \= NoFilter, QDir::SortFlags sort \= NoSort) const
Returns a list of QFileInfo objects for all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().
The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.
Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.
See also entryList(), setNameFilters(), setSorting(), setFilter(), isReadable(), and exists().
QFileInfoList QDir::entryInfoList(QDir::Filters filters \= NoFilter, QDir::SortFlags sort \= NoSort) const
This is an overloaded function.
Returns a list of QFileInfo objects for all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().
The attribute filter and sorting specifications can be overridden using the filters and sort arguments.
Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.
See also entryList(), setNameFilters(), setSorting(), setFilter(), isReadable(), and exists().
Upstream PySide2 reference signatures (binding differences may apply):
entryInfoList(self, filters: PySide2.QtCore.QDir.Filters=..., sort: PySide2.QtCore.QDir.SortFlags=...) -> typing.List[PySide2.QtCore.QFileInfo]
entryInfoList(self, nameFilters: typing.Sequence[str], filters: PySide2.QtCore.QDir.Filters=..., sort: PySide2.QtCore.QDir.SortFlags=...) -> typing.List[PySide2.QtCore.QFileInfo]
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#entryInfoList
entryList
entryList(nameFilters: Any, filters: Any, sort: Any) -> tuple
X.entryList(nameFilters, filters, sort) -> tuple
Supplemental documentation: Qt 5 reference:
QStringList QDir::entryList(const QStringList \&nameFilters, QDir::Filters filters \= NoFilter, QDir::SortFlags sort \= NoSort) const
Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().
The name filter, file attribute filter, and sorting specification can be overridden using the nameFilters, filters, and sort arguments.
Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.
See also entryInfoList(), setNameFilters(), setSorting(), and setFilter().
QStringList QDir::entryList(QDir::Filters filters \= NoFilter, QDir::SortFlags sort \= NoSort) const
This is an overloaded function.
Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters previously set with setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().
The attribute filter and sorting specifications can be overridden using the filters and sort arguments.
Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.
Note: To list symlinks that point to non existing files, System must be passed to the filter.
See also entryInfoList(), setNameFilters(), setSorting(), and setFilter().
Upstream PySide2 reference signatures (binding differences may apply):
entryList(self, filters: PySide2.QtCore.QDir.Filters=..., sort: PySide2.QtCore.QDir.SortFlags=...) -> typing.List[str]
entryList(self, nameFilters: typing.Sequence[str], filters: PySide2.QtCore.QDir.Filters=..., sort: PySide2.QtCore.QDir.SortFlags=...) -> typing.List[str]
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#entryList
exists
exists(name: Any) -> bool
X.exists(name) -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::exists(const QString \&name) const
Returns true if the file called name exists; otherwise returns false.
Unless name contains an absolute file path, the file name is assumed to be relative to the directory itself, so this function is typically used to check for the presence of files within a directory.
See also QFileInfo::exists() and QFile::exists().
bool QDir::exists() const
This is an overloaded function.
Returns true if the directory exists; otherwise returns false. (If a file with the
same name is found this function will return false).
The overload of this function that accepts an argument is used to test for the presence of files and directories within a directory.
See also QFileInfo::exists() and QFile::exists().
Upstream PySide2 reference signatures (binding differences may apply):
exists(self) -> bool
exists(self, name: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#exists
filePath
filePath(fileName: str) -> str
X.filePath(fileName) -> str
Supplemental documentation: Qt 5 reference:
QString QDir::filePath(const QString \&fileName) const
Returns the path name of a file in the directory. Does not check if the file actually exists in the directory; but see exists(). If the QDir is relative the returned path name will also be relative. Redundant multiple separators or "." and ".." directories in fileName are not removed (see cleanPath()).
See also dirName(), absoluteFilePath(), isRelative(), and canonicalPath().
Upstream PySide2 reference signatures (binding differences may apply):
filePath(self, fileName: str) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#filePath
filter
filter() -> Any
X.filter()
Supplemental documentation: Qt 5 reference:
QDir::Filters QDir::filter() const
Returns the value set by setFilter()
See also setFilter().
Upstream PySide2 reference signatures (binding differences may apply):
filter(self) -> PySide2.QtCore.QDir.Filters
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#filter
fromNativeSeparators
fromNativeSeparators(pathName: str) -> str
X.fromNativeSeparators(pathName) -> str
Supplemental documentation: Qt 5 reference:
[static] QString QDir::fromNativeSeparators(const QString \&pathName)
Returns pathName using '/' as file separator. On Windows, for instance,
fromNativeSeparators("c:\\winnt\\system32") returns "c:/winnt/system32".
The returned string may be the same as the argument on some operating systems, for example on Unix.
This function was introduced in Qt 4.2.
See also toNativeSeparators() and separator().
Upstream PySide2 reference signatures (binding differences may apply):
fromNativeSeparators(pathName: str) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#fromNativeSeparators
home
home() -> Any
X.home() -> PythonQt.QtCore.QDir
Supplemental documentation: Qt 5 reference:
[static] QDir QDir::home()
Returns the user's home directory.
The directory is constructed using the absolute path of the home directory, ensuring that its path() will be the same as its absolutePath().
See homePath() for details.
See also drives(), current(), root(), and temp().
Upstream PySide2 reference signatures (binding differences may apply):
home() -> PySide2.QtCore.QDir
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#home
homePath
homePath() -> str
X.homePath() -> str
Supplemental documentation: Qt 5 reference:
[static] QString QDir::homePath()
Returns the absolute path of the user's home directory.
Under Windows this function will return the directory of the current user's profile. Typically, this is:
C:/Users/Username
Use the toNativeSeparators() function to convert the separators to the ones that are appropriate for the underlying operating system.
If the directory of the current user's profile does not exist or cannot be retrieved, the following alternatives will be checked (in the given order) until an existing and available path is found:
- The path specified by the
USERPROFILEenvironment variable. - The path formed by concatenating the
HOMEDRIVEandHOMEPATHenvironment variables. - The path specified by the
HOMEenvironment variable. - The path returned by the rootPath() function (which uses the
SystemDriveenvironment variable) - The
C:/directory.
Under non-Windows operating systems the HOME environment variable is used if it
exists, otherwise the path returned by the
rootPath().
See also home(), currentPath(), rootPath(), and tempPath().
Upstream PySide2 reference signatures (binding differences may apply):
homePath() -> str
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#homePath
isAbsolute
isAbsolute() -> bool
X.isAbsolute() -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::isAbsolute() const
Returns true if the directory's path is absolute; otherwise returns false. See
isAbsolutePath().
Note: Paths starting with a colon (:) are always considered absolute, as they denote a QResource.
See also isRelative(), makeAbsolute(), and cleanPath().
Upstream PySide2 reference signatures (binding differences may apply):
isAbsolute(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#isAbsolute
isAbsolutePath
isAbsolutePath(path: str) -> bool
X.isAbsolutePath(path) -> bool
Supplemental documentation: Qt 5 reference:
[static] bool QDir::isAbsolutePath(const QString \&path)
Returns true if path is absolute; returns false if it is relative.
Note: Paths starting with a colon (:) are always considered absolute, as they denote a QResource.
See also isAbsolute(), isRelativePath(), makeAbsolute(), cleanPath(), and QResource.
Upstream PySide2 reference signatures (binding differences may apply):
isAbsolutePath(path: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#isAbsolutePath
isReadable
isReadable() -> bool
X.isReadable() -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::isReadable() const
Returns true if the directory is readable and we can open files by name; otherwise
returns false.
Warning: A false value from this function is not a guarantee that files in the directory are not accessible.
See also QFileInfo::isReadable().
Upstream PySide2 reference signatures (binding differences may apply):
isReadable(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#isReadable
isRelative
isRelative() -> bool
X.isRelative() -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::isRelative() const
Returns true if the directory path is relative; otherwise returns false. (Under Unix a
path is relative if it does not start with a "/").
Note: Paths starting with a colon (:) are always considered absolute, as they denote a QResource.
See also makeAbsolute(), isAbsolute(), isAbsolutePath(), and cleanPath().
Upstream PySide2 reference signatures (binding differences may apply):
isRelative(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#isRelative
isRelativePath
isRelativePath(path: str) -> bool
X.isRelativePath(path) -> bool
Supplemental documentation: Qt 5 reference:
[static] bool QDir::isRelativePath(const QString \&path)
Returns true if path is relative; returns false if it is absolute.
Note: Paths starting with a colon (:) are always considered absolute, as they denote a QResource.
See also isRelative(), isAbsolutePath(), and makeAbsolute().
Upstream PySide2 reference signatures (binding differences may apply):
isRelativePath(path: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#isRelativePath
isRoot
isRoot() -> bool
X.isRoot() -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::isRoot() const
Returns true if the directory is the root directory; otherwise returns false.
Note: If the directory is a symbolic link to the root directory this function returns
false. If you want to test for this use
canonicalPath(), e.g.
QDir dir("/temporary/root_link");
dir = dir.canonicalPath();
if (dir.isRoot())
qWarning("It is a root link");
See also root() and rootPath().
Upstream PySide2 reference signatures (binding differences may apply):
isRoot(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#isRoot
listSeparator
listSeparator() -> str
X.listSeparator()
Supplemental documentation: Qt 5 reference:
[static] QChar QDir::listSeparator()
Returns the native path list separator: ':' under Unix and ';' under Windows.
This function was introduced in Qt 5.6.
See also separator().
Upstream PySide2 reference signatures (binding differences may apply):
listSeparator() -> str
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#listSeparator
makeAbsolute
makeAbsolute() -> bool
X.makeAbsolute() -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::makeAbsolute()
Converts the directory path to an absolute path. If it is already absolute nothing
happens. Returns true if the conversion succeeded; otherwise returns false.
See also isAbsolute(), isAbsolutePath(), isRelative(), and cleanPath().
Upstream PySide2 reference signatures (binding differences may apply):
makeAbsolute(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#makeAbsolute
match
match(filter: Any, fileName: str) -> bool
X.match(filter, fileName) -> bool
Supplemental documentation: Qt 5 reference:
[static] bool QDir::match(const QString \&filter, const QString \&fileName)
Returns true if the fileName matches the wildcard (glob) pattern filter; otherwise
returns false. The filter may contain multiple patterns separated by spaces or
semicolons. The matching is case insensitive.
See also QRegularExpression Wildcard Matching, entryList(), and entryInfoList().
[static] bool QDir::match(const QStringList \&filters, const QString \&fileName)
This is an overloaded function.
Returns true if the fileName matches any of the wildcard (glob) patterns in the list
of filters; otherwise returns false. The matching is case insensitive.
See also QRegularExpression Wildcard Matching, entryList(), and entryInfoList().
Upstream PySide2 reference signatures (binding differences may apply):
match(filter: str, fileName: str) -> bool
match(filters: typing.Sequence[str], fileName: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#match
mkdir
mkdir(dirName: str) -> bool
X.mkdir(dirName) -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::mkdir(const QString \&dirName) const
Creates a sub-directory called dirName.
Returns true on success; otherwise returns false.
If the directory already exists when this function is called, it will return false.
See also rmdir().
Upstream PySide2 reference signatures (binding differences may apply):
mkdir(self, dirName: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#mkdir
mkpath
mkpath(dirPath: str) -> bool
X.mkpath(dirPath) -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::mkpath(const QString \&dirPath) const
Creates the directory path dirPath.
The function will create all parent directories necessary to create the directory.
Returns true if successful; otherwise returns false.
If the path already exists when this function is called, it will return true.
See also rmpath().
Upstream PySide2 reference signatures (binding differences may apply):
mkpath(self, dirPath: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#mkpath
nameFilters
nameFilters() -> tuple
X.nameFilters() -> tuple
Supplemental documentation: Qt 5 reference:
QStringList QDir::nameFilters() const
Returns the string list set by setNameFilters()
See also setNameFilters().
Upstream PySide2 reference signatures (binding differences may apply):
nameFilters(self) -> typing.List[str]
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#nameFilters
nameFiltersFromString
nameFiltersFromString(nameFilter: str) -> tuple
X.nameFiltersFromString(nameFilter) -> tuple
Upstream PySide2 reference signatures (binding differences may apply):
nameFiltersFromString(nameFilter: str) -> typing.List[str]
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#nameFiltersFromString
operator_subscript
operator_subscript(arg__1: Any) -> str
X.operator_subscript(arg__1) -> str
path
path() -> str
X.path() -> str
Supplemental documentation: Qt 5 reference:
QString QDir::path() const
Returns the path. This may contain symbolic links, but never contains redundant ".", ".." or multiple separators.
The returned path can be either absolute or relative (see setPath()).
See also setPath(), absolutePath(), exists(), cleanPath(), dirName(), absoluteFilePath(), toNativeSeparators(), and makeAbsolute().
Upstream PySide2 reference signatures (binding differences may apply):
path(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#path
refresh
refresh() -> None
X.refresh()
Supplemental documentation: Qt 5 reference:
void QDir::refresh() const
Refreshes the directory information.
Upstream PySide2 reference signatures (binding differences may apply):
refresh(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#refresh
relativeFilePath
relativeFilePath(fileName: str) -> str
X.relativeFilePath(fileName) -> str
Supplemental documentation: Qt 5 reference:
QString QDir::relativeFilePath(const QString \&fileName) const
Returns the path to fileName relative to the directory.
QDir dir("/home/bob");
QString s;
s = dir.relativeFilePath("images/file.jpg"); // s is "images/file.jpg"
s = dir.relativeFilePath("/home/mary/file.txt"); // s is "../mary/file.txt"
See also absoluteFilePath(), filePath(), and canonicalPath().
Upstream PySide2 reference signatures (binding differences may apply):
relativeFilePath(self, fileName: str) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#relativeFilePath
remove
remove(fileName: str) -> bool
X.remove(fileName) -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::remove(const QString \&fileName)
Removes the file, fileName.
Returns true if the file is removed successfully; otherwise returns false.
Upstream PySide2 reference signatures (binding differences may apply):
remove(self, fileName: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#remove
removeRecursively
removeRecursively() -> bool
X.removeRecursively() -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::removeRecursively()
Removes the directory, including all its contents.
Returns true if successful, otherwise false.
If a file or directory cannot be removed, removeRecursively() keeps going and attempts
to delete as many files and sub-directories as possible, then returns false.
If the directory was already removed, the method returns true (expected result already
reached).
Note: this function is meant for removing a small application-internal directory (such as a temporary directory), but not user-visible directories. For user-visible operations, it is rather recommended to report errors more precisely to the user, to offer solutions in case of errors, to show progress during the deletion since it could take several minutes, etc.
This function was introduced in Qt 5.0.
Upstream PySide2 reference signatures (binding differences may apply):
removeRecursively(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#removeRecursively
rename
rename(oldName: str, newName: str) -> bool
X.rename(oldName, newName) -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::rename(const QString \&oldName, const QString \&newName)
Renames a file or directory from oldName to newName, and returns true if successful;
otherwise returns false.
On most file systems, rename() fails only if oldName does not exist, or if a file with the new name already exists. However, there are also other reasons why rename() can fail. For example, on at least one file system rename() fails if newName points to an open file.
If oldName is a file (not a directory) that can't be renamed right away, Qt will try to copy oldName to newName and remove oldName.
See also QFile::rename().
Upstream PySide2 reference signatures (binding differences may apply):
rename(self, oldName: str, newName: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#rename
rmdir
rmdir(dirName: str) -> bool
X.rmdir(dirName) -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::rmdir(const QString \&dirName) const
Removes the directory specified by dirName.
The directory must be empty for rmdir() to succeed.
Returns true if successful; otherwise returns false.
See also mkdir().
Upstream PySide2 reference signatures (binding differences may apply):
rmdir(self, dirName: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#rmdir
rmpath
rmpath(dirPath: str) -> bool
X.rmpath(dirPath) -> bool
Supplemental documentation: Qt 5 reference:
bool QDir::rmpath(const QString \&dirPath) const
Removes the directory path dirPath.
The function will remove all parent directories in dirPath, provided that they are empty. This is the opposite of mkpath(dirPath).
Returns true if successful; otherwise returns false.
See also mkpath().
Upstream PySide2 reference signatures (binding differences may apply):
rmpath(self, dirPath: str) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#rmpath
root
root() -> Any
X.root() -> PythonQt.QtCore.QDir
Supplemental documentation: Qt 5 reference:
[static] QDir QDir::root()
Returns the root directory.
The directory is constructed using the absolute path of the root directory, ensuring that its path() will be the same as its absolutePath().
See rootPath() for details.
See also drives(), current(), home(), and temp().
Upstream PySide2 reference signatures (binding differences may apply):
root() -> PySide2.QtCore.QDir
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#root
rootPath
rootPath() -> str
X.rootPath() -> str
Supplemental documentation: Qt 5 reference:
[static] QString QDir::rootPath()
Returns the absolute path of the root directory.
For Unix operating systems this returns "/". For Windows file systems this normally returns "c:/".
See also root(), drives(), currentPath(), homePath(), and tempPath().
Upstream PySide2 reference signatures (binding differences may apply):
rootPath() -> str
Source: https://doc.qt.io/archives/qt-5.15/qdir.html#rootPath