Required Instance Methodswift-nio 2.72.0_NIOFileSystem

    setTimes(lastAccess:lastDataModification:)

    Sets the file’s last access and last data modification times to the given values.

    FileHandleProtocol.swift:163
    iOS
    13.0+
    macOS
    10.15+
    tvOS
    13.0+
    watchOS
    6.0+
    func setTimes(lastAccess: FileInfo.Timespec?, lastDataModification: FileInfo.Timespec?) async throws

    Parameters

    lastAccessTime

    The new value of the file’s last access time, as time elapsed since the Epoch.

    lastDataModificationTime

    The new value of the file’s last data modification time, as time elapsed since the Epoch.

    Throws

    If there’s an error updating the times. If this happens, the original values won’t be modified.

    If either time is nil, the current value will not be changed. If both times are nil, then both times will be set to the current time.

    Other requirements

    View members

    Hide members

    This section is hidden by default because it contains too many (12) members.

    Instance members

    Citizens in _NIOFileSystem

    Default implementations