Update QFileInfo docs to mention macOS aliases
The LegacyLinkType reflected by isSymLink() includes QFileSystemMetaData::AliasType. Pick-to: 6.3 6.2 5.15 Change-Id: I98c84573f7f05d6d183b6ce1e22fc7424ed8e730 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
1775029c9b
commit
b5144d2722
@ -1075,8 +1075,8 @@ bool QFileInfo::isBundle() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Returns \c true if this object points to a symbolic link or shortcut;
|
Returns \c true if this object points to a symbolic link, shortcut,
|
||||||
otherwise returns \c false.
|
or alias; otherwise returns \c false.
|
||||||
|
|
||||||
Symbolic links exist on Unix (including \macos and iOS) and Windows
|
Symbolic links exist on Unix (including \macos and iOS) and Windows
|
||||||
and are typically created by the \c{ln -s} or \c{mklink} commands,
|
and are typically created by the \c{ln -s} or \c{mklink} commands,
|
||||||
@ -1084,8 +1084,9 @@ bool QFileInfo::isBundle() const
|
|||||||
the \l{symLinkTarget()}{link's target}.
|
the \l{symLinkTarget()}{link's target}.
|
||||||
|
|
||||||
In addition, true will be returned for shortcuts (\c *.lnk files) on
|
In addition, true will be returned for shortcuts (\c *.lnk files) on
|
||||||
Windows. This behavior is deprecated and will likely change in a future
|
Windows, and aliases on \macos. This behavior is deprecated and will
|
||||||
version of Qt. Opening those will open the \c .lnk file itself.
|
likely change in a future version of Qt. Opening a shortcut or alias
|
||||||
|
will open the \c .lnk or alias file itself.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
@ -1117,7 +1118,8 @@ bool QFileInfo::isSymLink() const
|
|||||||
opens the \l{symLinkTarget()}{link's target}.
|
opens the \l{symLinkTarget()}{link's target}.
|
||||||
|
|
||||||
In contrast to isSymLink(), false will be returned for shortcuts
|
In contrast to isSymLink(), false will be returned for shortcuts
|
||||||
(\c *.lnk files) on Windows. Use QFileInfo::isShortcut() instead.
|
(\c *.lnk files) on Windows and aliases on \macos.
|
||||||
|
Use QFileInfo::isShortcut() on Windows instead.
|
||||||
|
|
||||||
\note If the symlink points to a non existing file, exists() returns
|
\note If the symlink points to a non existing file, exists() returns
|
||||||
false.
|
false.
|
||||||
|
Loading…
Reference in New Issue
Block a user