openFile(filePath:flags:attributes:)

    Open a file at the specified path on the SFTP server, using the given flags and attributes. If the .create flag is specified, the given attributes are applied to the created file. If successful, an SFTPFile is returned which can be used to perform various operations on the open file. The file object must be explicitly closed by the caller; the client does not keep track of open files.

    SFTPClient.swift:178
    func openFile(filePath: String, flags: SFTPOpenFileFlags, attributes: SFTPFileAttributes = .none) async throws -> SFTPFile

    Other members in extension

    Instance members