qt5base-lts/tests/auto/corelib/io
Ryan Chu 7a4e5e7433 Make Qt aware of symlinks and shortcuts on Windows
Qt has traditionally considered Windows shortcut files equivalent to
symlinks on Unix file systems. Because of NTFS symlinks, the
interpretation of shotcut files as symlinks is confusing.

In this change, QFileInfo treats shortcut (.lnk) files as regular files
but can follow the pointed object.

In addition, QFileInfo introduces a more comprehensive file type. So
that applications can make well-informed decisions about how to treat a
file system entry.

Based on the implementation of QFileInfo::type(), two inline helper
functions are introduced to QFileInfo.
1. isSymbolicLink, returns true if it points to a symbolic link.
2. isShortcut, returns true if it points to a shortcut.

[ChangeLog][QtCore][QFileInfo] Introduce QFileInfo::type() to replace
the isSymLink method.

Task-number: QTBUG-75869
Change-Id: Icc0dd52f9ad0ea50b0265d77ee0d0a3d25054e39
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2019-08-16 23:25:33 +02:00
..
largefile Remove usages of deprecated APIs from QtAlgorithms 2019-06-29 21:58:36 +02:00
qabstractfileengine Filesystem: Use "birth time" to avoid confusion with Unix ctime 2017-08-05 16:41:38 +00:00
qbuffer Updated license headers 2016-01-21 18:55:18 +00:00
qdataurl Updated license headers 2016-01-21 18:55:18 +00:00
qdebug Port from QStringViewLiteral to u"" 2019-07-29 11:17:28 +03:00
qdir QDir: strip Windows' long-path markers when converting from native 2019-07-17 20:07:15 +02:00
qdiriterator Android: fix qdiriterator test 2018-06-21 14:14:45 +00:00
qfile unblacklist passing tests 2019-07-08 11:01:42 +00:00
qfileinfo Make Qt aware of symlinks and shortcuts on Windows 2019-08-16 23:25:33 +02:00
qfileselector Do not strip off the fragment and query in the qfileselector 2019-06-03 12:29:49 +00:00
qfilesystementry Updated license headers 2016-01-21 18:55:18 +00:00
qfilesystemmetadata Filesystem: Use "birth time" to avoid confusion with Unix ctime 2017-08-05 16:41:38 +00:00
qfilesystemwatcher unblacklist passing tests 2019-07-08 11:01:42 +00:00
qiodevice Remove QSKIP and bring the test back to business 2018-10-25 11:51:42 +00:00
qipaddress QIpAddress: reject IPv6 addresses with more than 4 hex digits 2018-03-16 00:01:53 +00:00
qlockfile Remove usages of QSysInfo's deprecated APIs 2019-07-05 09:26:17 +00:00
qloggingcategory Prefix QTextStream operators with Qt:: in tests 2019-05-03 09:36:36 +00:00
qloggingregistry Logging: Accept .ini files written by QSettings 2018-07-28 14:43:40 +00:00
qnodebug Port from QStringViewLiteral to u"" 2019-07-29 11:17:28 +03:00
qprocess unblacklist passing tests 2019-07-08 11:01:42 +00:00
qprocess-noapplication macOS: Don't build auto-tests as application bundles unless explicitly requested 2016-10-23 10:39:56 +00:00
qprocessenvironment QtCore: Remove Windows CE. 2016-03-30 11:22:47 +00:00
qresourceengine QResource: deprecate isCompressed() 2019-07-16 22:36:27 -03:00
qsavefile QSaveFile: Fix changing the file name after hitting on readonly file 2019-07-11 22:00:10 +02:00
qsettings Remove usages of deprecated APIs of qtbase/gui 2019-07-13 10:43:15 +02:00
qstandardpaths test: migrate QStandardPaths tests to QRegularExpression 2019-06-10 21:34:38 +02:00
qstorageinfo Ignore failing test for free space on APFS 2019-04-30 10:58:13 +00:00
qtemporarydir Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qtemporaryfile Merge remote-tracking branch 'origin/5.13' into dev 2019-06-27 14:38:03 +02:00
qurl Brush up tst_QUrl 2019-06-11 09:16:31 +02:00
qurlinternal QUrl: fix IDN conversion when the ACE form is invalid 2017-04-25 00:51:43 +00:00
qurlquery QUrlQuery: Implement initializer list constructor 2018-12-09 11:35:27 +00:00
io.pro Modernize the "settings" feature 2018-11-15 17:20:15 +00:00