From d047c36dd09b6169bf27c244196e99bb5df54c3a Mon Sep 17 00:00:00 2001 From: Mitchell Date: Sat, 20 Mar 2021 01:37:03 -0400 Subject: Update documentation. Remove all traces of chdir from the steam library. Remove most linter complaints. --- steam/filelisting.go | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 steam/filelisting.go (limited to 'steam/filelisting.go') 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 -} -- cgit v1.2.3