mirror of
https://github.com/claunia/plist-cil.git
synced 2026-02-04 05:34:41 +00:00
[PR #11] [MERGED] Always create a new file when writing to disk. #45
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/claunia/plist-cil/pull/11
Author: @qmfrederik
Created: 6/3/2016
Status: ✅ Merged
Merged: 6/22/2016
Merged by: @claunia
Base:
master← Head:fixes/create-new-file📝 Commits (1)
bf031faAlways create a new file when writing to disk.📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
plist-cil/PropertyListParser.cs(+4 -1)📄 Description
Previously, plist-cil used
outFile.Open(FileMode.OpenOrCreate. This had the side effect of, when the old file was larger than the new file, leaving some junk at the end of the file.Using
FileMode.Createfixes that (and if the file already exists, it is overwritten).@claunia Would be great if you have some time to go over these pull requests :-)
Thanks!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.