diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2010-10-11 16:07:09 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-10-12 12:56:46 (GMT) |
commit | 2030d7894d119a207f872f23fc06ab3f934073f3 (patch) | |
tree | 7fd50386c079739bd01127817475bf8dc9c35f03 /src | |
parent | 8ee99ee22729b4d9603fe83929116259956b81ce (diff) | |
download | Qt-2030d7894d119a207f872f23fc06ab3f934073f3.zip Qt-2030d7894d119a207f872f23fc06ab3f934073f3.tar.gz Qt-2030d7894d119a207f872f23fc06ab3f934073f3.tar.bz2 |
Update documentation of QDir to reflect Qt 4 behaviour
Reviewed-By: Thomas Zander
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/io/qdir.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp index bbe9226..eb78e25 100644 --- a/src/corelib/io/qdir.cpp +++ b/src/corelib/io/qdir.cpp @@ -1356,8 +1356,11 @@ QFileInfoList QDir::entryInfoList(const QStringList &nameFilters, Filters filter Returns true on success; otherwise returns false. + If the directory already exists when this function is called, it will return false. + \sa rmdir() */ +// ### Qt5: behaviour when directory already exists should be made consistent for mkdir and mkpath bool QDir::mkdir(const QString &dirName) const { const QDirPrivate* d = d_ptr.constData(); @@ -1406,8 +1409,11 @@ bool QDir::rmdir(const QString &dirName) const Returns true if successful; otherwise returns false. + If the path already exists when this function is called, it will return true. + \sa rmpath() */ +// ### Qt5: behaviour when directory already exists should be made consistent for mkdir and mkpath bool QDir::mkpath(const QString &dirPath) const { const QDirPrivate* d = d_ptr.constData(); |