Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1049: FileSaver does not truncate existing files
FileMode.OpenOrCreate does not automatically truncate files. This fix truncates files to ensure that junk data does not appear at the end of a newly saved file if the data being written is shorter than data present in a previously existing file.
- Loading branch information