diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2020-11-20 22:46:45 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2020-11-20 22:46:45 -0500 |
| commit | 891447f0e40a6d1a9637b3333cffed8eb2543c51 (patch) | |
| tree | fb748b0c6af1670a2b73e5d581f206d0fe26e003 /archive | |
| parent | 971cc396e1d01f53f65a86278fd0ac4490565335 (diff) | |
| download | steam-export-891447f0e40a6d1a9637b3333cffed8eb2543c51.tar.gz steam-export-891447f0e40a6d1a9637b3333cffed8eb2543c51.tar.xz | |
Works after reorganization.
Diffstat (limited to 'archive')
| -rw-r--r-- | archive/archive.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/archive/archive.go b/archive/archive.go index 639a864..313c062 100644 --- a/archive/archive.go +++ b/archive/archive.go @@ -47,7 +47,7 @@ func (a *Archive) Tar(compressionType string) error { defer twriter.Close() for _, v := range a.Input { - if err := filepath.Walk(v, tarWalkfn(twriter)); err != nil { + if err := filepath.Walk(v, TarWalkfn(twriter)); err != nil { return err } } @@ -56,8 +56,7 @@ func (a *Archive) Tar(compressionType string) error { } -func tarWalkfn(writer *tar.Writer) filepath.WalkFunc { - // This is an interesting trick to get around scoping issues +func TarWalkfn(writer *tar.Writer) filepath.WalkFunc { return func(path string, info os.FileInfo, err error) error { if err != nil { return err |
