@@ -44,17 +44,4 @@ export default class NodeFileSystemWritableFileStream extends WritableStream imp
|
||||
fs.writeSync(this.#fd, (wdata as Uint8Array), null, wsize, this.#seek_position)
|
||||
this.#seek_position = pseek_position
|
||||
}
|
||||
async #_close() {
|
||||
try {
|
||||
fs.closeSync(this.#fd)
|
||||
} catch { }
|
||||
}
|
||||
async close(): Promise<void> {
|
||||
await super.close()
|
||||
await this.#_close()
|
||||
}
|
||||
async abort(reason?: any): Promise<void> {
|
||||
await super.abort(reason)
|
||||
await this.#_close()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user