You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux penguin 6.1.55-06877-gc83437f2949f #1 SMP PREEMPT_DYNAMIC Sat Dec 2 18:30:09 PST 2023 x86_64 GNU/Linux
Subsystem
Debian 11 (chromeos flex)
What steps will reproduce the bug?
import{open,rename,}from"node:fs/promises";import{createDeflate,createInflate,constants}from"node:zlib";constfileHandle=awaitopen(filePath,"r"),writeStream=createDeflate({flush: constants.Z_FULL_FLUSH,}),fileTempHandle=awaitopen(fileTempPath,"w");writeStream.pipe(fileTempHandle.createWriteStream());// using readline to read compressed filecreateInterface({input: fileHandle.createReadStream().pipe(createInflate()),crlfDelay: Infinity,})
write each line to the compressed file using writeStream.write(....); inside a for await loop
Version
21.4.0
Platform
Linux penguin 6.1.55-06877-gc83437f2949f #1 SMP PREEMPT_DYNAMIC Sat Dec 2 18:30:09 PST 2023 x86_64 GNU/LinuxSubsystem
Debian 11 (chromeos flex)
What steps will reproduce the bug?
write each line to the compressed file using
writeStream.write(....);inside a for await loopand then add some new lines and then run :
ps: when not using
flush: constants.Z_FULL_FLUSHi get an empty file with just the Gzip header (i guess)How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: