Required Instance Methodswift-nio 2.72.0_NIOFileSystem

    info(forFileAt:infoAboutSymbolicLink:)

    Returns information about the file at the given path, if it exists; nil otherwise.

    FileSystemProtocol.swift:141
    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.

    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.

    Other requirements

    Type members

    Instance members