diff options
author | Bas van Kervel <basvankervel@ziggo.nl> | 2015-05-12 20:24:11 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@ziggo.nl> | 2015-05-12 20:24:11 +0800 |
commit | b79dd188d916da7adbf448dc27b0c59a04e0938d (patch) | |
tree | 7980ae848a916171fbc65fb958eebdf0c98406dc /cmd/mist/html_container.go | |
parent | d82caa5ce38705d2dcdc2ba15c93df9325504e34 (diff) | |
download | dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.gz dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.bz2 dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.lz dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.xz dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.zst dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.zip |
replaced several path.* with filepath.* which is platform independent
Diffstat (limited to 'cmd/mist/html_container.go')
-rw-r--r-- | cmd/mist/html_container.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/mist/html_container.go b/cmd/mist/html_container.go index 7c948885a..c9b1f1cd6 100644 --- a/cmd/mist/html_container.go +++ b/cmd/mist/html_container.go @@ -26,7 +26,6 @@ import ( "io/ioutil" "net/url" "os" - "path" "path/filepath" "github.com/ethereum/go-ethereum/common" @@ -80,7 +79,7 @@ func (app *HtmlApplication) RootFolder() string { if err != nil { return "" } - return path.Dir(common.WindonizePath(folder.RequestURI())) + return filepath.Dir(common.WindonizePath(folder.RequestURI())) } func (app *HtmlApplication) RecursiveFolders() []os.FileInfo { files, _ := ioutil.ReadDir(app.RootFolder()) |