info(forFileAt:infoAboutSymbolicLink:)
Returns information about the file at the given path, if it exists; nil otherwise.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func info(forFileAt path: FilePath, infoAboutSymbolicLink: Bool) async throws -> FileInfo?
Parameters
- path
The path to get information about.
- infoAboutSymbolicLink
If the file is a symbolic link and this parameter is
true
then information about the link will be returned, otherwise information about the destination of the symbolic link is returned.
Returns
Information about the file at the given path or nil
if no file exists.