Use path instead of filepath
This commit is contained in:
parent
855eff6d88
commit
b557ab379b
|
@ -11,7 +11,6 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -385,7 +384,7 @@ type File interface {
|
||||||
type Dir string
|
type Dir string
|
||||||
|
|
||||||
func (d Dir) Open(name string) (File, error) {
|
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)
|
f, err := os.OpenFile(path, os.O_RDONLY, 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user