From 305cf18f103f008aa1b59907ea2e325618dfde19 Mon Sep 17 00:00:00 2001 From: Reya C Date: Sat, 3 Apr 2021 02:32:56 -0400 Subject: [PATCH] Increase buffer size and only compare section of the buffer that's actually used --- drive-demuxer.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drive-demuxer.go b/drive-demuxer.go index da0e8a7..fc774f6 100644 --- a/drive-demuxer.go +++ b/drive-demuxer.go @@ -119,6 +119,10 @@ func (s *Step) SeparateRight(child string) { rightInPath := s.InputPath(child, RIGHT) rightOutPath := s.OutputPath(child, RIGHT) + if s.DryRun { + return + } + rightBase := path.Dir(rightOutPath) err := os.MkdirAll(rightBase, 0755) if err != nil { @@ -135,6 +139,10 @@ func (s *Step) Combine(child string) { rightInPath := s.InputPath(child, RIGHT) combinedOutPath := s.OutputPath(child, COMBINED) + if s.DryRun { + return + } + combinedBase := path.Dir(combinedOutPath) err := os.MkdirAll(combinedBase, 0755) if err != nil {