From 413098c3e38263741c1281a61156326457436744 Mon Sep 17 00:00:00 2001 From: JiDe Zhang Date: Sat, 10 Jul 2021 09:57:22 +0800 Subject: feat: add new interfaces for std::filesystem::path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add for QFile::exists/symLinkTarget/remove/moveToTrash/ rename/link/copy Change-Id: I4cbb908e945f043b2a5278a6d8d5149b2f20e871 Reviewed-by: Qt CI Bot Reviewed-by: MÃ¥rten Nordheim --- src/corelib/io/qfile.cpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'src/corelib/io/qfile.cpp') 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 -- cgit v1.2.3