diff options
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)  			}  		} | 
