Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ext/fs): truncate files when a ReadableStream is passed to writeF…
…ile (denoland#23330) Closes denoland#19697. This fixes a bug where the writeFile API can create partially-overwritten files which may lead to invalid / corrupt files or data leakage. It also aligns the behavior of writing a ReadableStream and writing a Uint8Array to the disk.
- Loading branch information