aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/main.go
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@ziggo.nl>2015-05-12 20:24:11 +0800
committerBas van Kervel <basvankervel@ziggo.nl>2015-05-12 20:24:11 +0800
commitb79dd188d916da7adbf448dc27b0c59a04e0938d (patch)
tree7980ae848a916171fbc65fb958eebdf0c98406dc /cmd/geth/main.go
parentd82caa5ce38705d2dcdc2ba15c93df9325504e34 (diff)
downloadgo-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.gz
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.bz2
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.lz
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.xz
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.zst
go-tangerine-b79dd188d916da7adbf448dc27b0c59a04e0938d.zip
replaced several path.* with filepath.* which is platform independent
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r--cmd/geth/main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 5da59ff3b..5fe83a2a0 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -26,7 +26,6 @@ import (
"io"
"io/ioutil"
"os"
- "path"
"path/filepath"
"runtime"
"strconv"
@@ -565,7 +564,7 @@ func upgradeDb(ctx *cli.Context) {
}
filename := fmt.Sprintf("blockchain_%d_%s.chain", bcVersion, time.Now().Format("2006-01-02_15:04:05"))
- exportFile := path.Join(ctx.GlobalString(utils.DataDirFlag.Name), filename)
+ exportFile := filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), filename)
err = utils.ExportChain(ethereum.ChainManager(), exportFile)
if err != nil {
@@ -576,7 +575,7 @@ func upgradeDb(ctx *cli.Context) {
ethereum.StateDb().Close()
ethereum.ExtraDb().Close()
- os.RemoveAll(path.Join(ctx.GlobalString(utils.DataDirFlag.Name), "blockchain"))
+ os.RemoveAll(filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), "blockchain"))
ethereum, err = eth.New(cfg)
if err != nil {