Streams data to a file, creating the file and necessary directories if they do not exist.
The function handles backpressure by pausing the readable stream when the writable stream's internal buffer is full, and resuming it when the buffer is drained.
Streams data to a file, creating the file and necessary directories if they do not exist. The function handles backpressure by pausing the readable stream when the writable stream's internal buffer is full, and resuming it when the buffer is drained.