From d6fd521d48645cf188f02c9b467fddc65b061e0c Mon Sep 17 00:00:00 2001 From: liujianqiang Date: Wed, 19 Jan 2022 13:32:27 +0800 Subject: [PATCH] Note special case return If this QFileInfo object is given a path ending in a slash, isSymLink() returns false. Fixes: QTBUG-100029 Change-Id: If1b94e7b6f477b5bdbf1b2548f13ea6958ea578a --- src/corelib/io/qfileinfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/io/qfileinfo.cpp b/src/corelib/io/qfileinfo.cpp index da19ba625c6..0f75eafce39 100644 --- a/src/corelib/io/qfileinfo.cpp +++ b/src/corelib/io/qfileinfo.cpp @@ -1091,6 +1091,8 @@ bool QFileInfo::isBundle() const \note If the symlink points to a non existing file, exists() returns false. + \note If this QFileInfo object is given a path ending in a slash, isSymLink() + returns false. \sa isFile(), isDir(), symLinkTarget() */