aboutsummaryrefslogtreecommitdiff
path: root/steam/filelisting.go
diff options
context:
space:
mode:
authorMitchell <mitch@riedstra.dev>2021-03-20 01:37:03 -0400
committerMitchell <mitch@riedstra.dev>2021-03-20 01:37:03 -0400
commitd047c36dd09b6169bf27c244196e99bb5df54c3a (patch)
tree5103e1951bd58bbef54c90a13c199e8d1d866492 /steam/filelisting.go
parent0e62a3b46b25e7c101b14ed44235f3c276982fc0 (diff)
downloadsteam-export-d047c36dd09b6169bf27c244196e99bb5df54c3a.tar.gz
steam-export-d047c36dd09b6169bf27c244196e99bb5df54c3a.tar.xz
Update documentation. Remove all traces of chdir from the steam library. Remove most linter complaints.
Diffstat (limited to 'steam/filelisting.go')
-rw-r--r--steam/filelisting.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/steam/filelisting.go b/steam/filelisting.go
deleted file mode 100644
index f94319e..0000000
--- a/steam/filelisting.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package steam
-
-import (
- "path/filepath"
- "os"
-)
-
-func fileListing(pth string) (map[string]struct{}, error) {
- out := map[string]struct{}{}
- err := filepath.Walk(pth, func(path string, info os.FileInfo, err error) error {
- if err != nil {
- return err
- }
-
- if info.Mode().IsRegular() {
- out[path] = struct{}{}
- }
-
- return nil
- })
- if err != nil {
- return nil, err
- }
-
- return out, nil
-}