Download.dataset partially downloads ( corrupts) files? #744
Labels
bug
Something isn't working
good first issue
Good for newcomers
needs-ported
Indicates that a PR needs to be ported (master - lts-incremental)
priority-medium
Not functioning - next quarter if capacity permits
Hi,
Download.dataset() uses a "fs.createWriteStream()" to create a writable stream.
The writeablestream end() function is not explicitly being called.
For small files ( less than 64K), this results in incomplete files / data loss / corruption.
Might it possible for "end()" to be called on "writeStream" , after the "getExpectFullResponse" call, so the stream data is written to the file immediately?
Thanks
The text was updated successfully, but these errors were encountered: