diff options
author | tjp <tjp@ctrl-c.club> | 2023-11-14 09:39:53 -0700 |
---|---|---|
committer | tjp <tjp@ctrl-c.club> | 2023-11-14 09:39:53 -0700 |
commit | c22799fa12c99932fc4620fce2dc0994567a52af (patch) | |
tree | 5c89892e82f0ca805af976a2d2038a690152d4c6 /gopher/gophermap/listdir.go | |
parent | e599f0e2d4f8177143478ba17189e1ef656b7fe0 (diff) |
bugfixes from the Protocol refactorv1.6.0
Diffstat (limited to 'gopher/gophermap/listdir.go')
-rw-r--r-- | gopher/gophermap/listdir.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gopher/gophermap/listdir.go b/gopher/gophermap/listdir.go index a2c5214..30d7790 100644 --- a/gopher/gophermap/listdir.go +++ b/gopher/gophermap/listdir.go @@ -28,6 +28,7 @@ func listDir(dir string, location *url.URL, settings FileSystemSettings, hidden for _, entry := range contents { name := entry.Name() + fpath := filepath.Join(dir, name) inf, err := entry.Info() if err != nil { @@ -52,7 +53,7 @@ func listDir(dir string, location *url.URL, settings FileSystemSettings, hidden } else if c, ok := extensions[name]; ok { code = c } else { - code = gopher.GuessItemType(name) + code = gopher.GuessItemType(fpath) } } |