From b557ab379b5e30076f38b6aa1a8eecda199e3db6 Mon Sep 17 00:00:00 2001 From: adnano Date: Mon, 28 Sep 2020 19:54:08 -0400 Subject: [PATCH] Use path instead of filepath --- server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.go b/server.go index 158f9cf..84db552 100644 --- a/server.go +++ b/server.go @@ -11,7 +11,6 @@ import ( "net/url" "os" "path" - "path/filepath" "sort" "strconv" "strings" @@ -385,7 +384,7 @@ type File interface { type Dir string func (d Dir) Open(name string) (File, error) { - path := filepath.Join(string(d), name) + path := path.Join(string(d), name) f, err := os.OpenFile(path, os.O_RDONLY, 0644) if err != nil { return nil, err