[SkipperRule] Transform stream needs a new file to write to

This commit is contained in:
Matt Nadareski
2017-03-18 13:27:05 -07:00
parent c7d1bf1686
commit a47b70aa5c

View File

@@ -50,7 +50,7 @@ namespace SabreTools.Helper.Skippers
}
Globals.Logger.User("Attempting to apply rule to '" + input + "'");
success = TransformStream(FileTools.TryOpenRead(input), FileTools.TryOpenWrite(output));
success = TransformStream(FileTools.TryOpenRead(input), FileTools.TryCreate(output));
// If the output file has size 0, delete it
if (new FileInfo(output).Length == 0)