aboutsummaryrefslogtreecommitdiff
path: root/archive
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-11-20 22:46:45 -0500
committerMitch Riedstra <mitch@riedstra.us>2020-11-20 22:46:45 -0500
commit891447f0e40a6d1a9637b3333cffed8eb2543c51 (patch)
treefb748b0c6af1670a2b73e5d581f206d0fe26e003 /archive
parent971cc396e1d01f53f65a86278fd0ac4490565335 (diff)
downloadsteam-export-891447f0e40a6d1a9637b3333cffed8eb2543c51.tar.gz
steam-export-891447f0e40a6d1a9637b3333cffed8eb2543c51.tar.xz
Works after reorganization.
Diffstat (limited to 'archive')
-rw-r--r--archive/archive.go5
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