Skip to content

Commit

Permalink
Update permissions to wipe original file data
Browse files Browse the repository at this point in the history
Was appending
Closes #3
  • Loading branch information
kwsch committed May 3, 2021
1 parent 4465600 commit 4644157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NewSnap.Lib/DRPF/DrpArchiveChanger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static void Replace(string source, string destination, string replace)
public static void Replace(string source, string destination, IEnumerable<string> filesToReplace)
{
var drp = Replace(source, filesToReplace);
using var fs = File.OpenWrite(destination);
using var fs = File.Open(destination, FileMode.Create, FileAccess.Write);
drp.Write(fs);
}

Expand Down

0 comments on commit 4644157

Please sign in to comment.