diff options
Diffstat (limited to 'internal/outputs/files.go')
-rw-r--r-- | internal/outputs/files.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/outputs/files.go b/internal/outputs/files.go index 3425d93..e8da259 100644 --- a/internal/outputs/files.go +++ b/internal/outputs/files.go @@ -70,6 +70,10 @@ func (f *FilesOutput) CopyRecursive(src string) error { }) } +func (f *FilesOutput) Open(filename string) (io.ReadCloser, error) { + return os.Open(filepath.Join(f.outputDirectory, filename)) +} + func (f *FilesOutput) OutputToFile(output io.Reader, filename string) error { fn := path.Join(f.outputDirectory, filename) if err := f.mkdirp(filepath.Dir(filename)); err != nil { |