Gio.OutputStream.prototype.is_closed

function is_closed(): Boolean {
    // Gjs wrapper for g_output_stream_is_closed()
}
  

Checks if an output stream has already been closed.

Returns

true if stream is closed. false otherwise.