diff options
author | JiDe Zhang <zccrs@live.com> | 2021-07-10 09:57:22 +0800 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2021-09-14 03:18:04 +0200 |
commit | 413098c3e38263741c1281a61156326457436744 (patch) | |
tree | b3b33ac795ea6015a0e997b316ef9a86399a4f4e /src/corelib/io/qfile.cpp | |
parent | ec3260e5c7107490fd7c8e196fed82e6ca188dca (diff) |
feat: add new interfaces for std::filesystem::path
Add for QFile::exists/symLinkTarget/remove/moveToTrash/
rename/link/copy
Change-Id: I4cbb908e945f043b2a5278a6d8d5149b2f20e871
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/io/qfile.cpp')
-rw-r--r-- | src/corelib/io/qfile.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/corelib/io/qfile.cpp b/src/corelib/io/qfile.cpp index e031e9c091..471d73fcb6 100644 --- a/src/corelib/io/qfile.cpp +++ b/src/corelib/io/qfile.cpp @@ -1173,6 +1173,46 @@ qint64 QFile::size() const \since 6.0 \overload */ +/*! + \fn bool exists(const std::filesystem::path &fileName) + \since 6.3 + \overload +*/ +/*! + \fn std::filesystem::path QFile::filesystemSymLinkTarget() const + \since 6.3 + Returns symLinkTarget() as \c{std::filesystem::path}. +*/ +/*! + \fn std::filesystem::path QFile::filesystemSymLinkTarget(const std::filesystem::path &fileName) + \since 6.3 + Returns symLinkTarget() as \c{std::filesystem::path} of \a fileName. +*/ +/*! + \fn bool remove(const std::filesystem::path &fileName) + \since 6.3 + \overload +*/ +/*! + \fn bool moveToTrash(const std::filesystem::path &fileName, QString *pathInTrash) + \since 6.3 + \overload +*/ +/*! + \fn bool rename(const std::filesystem::path &oldName, const std::filesystem::path &newName) + \since 6.3 + \overload +*/ +/*! + \fn bool link(const std::filesystem::path &fileName, const std::filesystem::path &newName); + \since 6.3 + \overload +*/ +/*! + \fn bool copy(const std::filesystem::path &fileName, const std::filesystem::path &newName); + \since 6.3 + \overload +*/ QT_END_NAMESPACE |