The reason for using
await readable.pipeTo(writable)
is the .crswap
file is automatically removed when the Promise fulfills.
Here's one way to write arbitrary volumes of data to the same file, without generating a bunch of orphan .crswap files.
The gist is