mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SkipperRule] Transform stream needs a new file to write to
This commit is contained in:
@@ -50,7 +50,7 @@ namespace SabreTools.Helper.Skippers
|
|||||||
}
|
}
|
||||||
|
|
||||||
Globals.Logger.User("Attempting to apply rule to '" + input + "'");
|
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 the output file has size 0, delete it
|
||||||
if (new FileInfo(output).Length == 0)
|
if (new FileInfo(output).Length == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user