mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
paths
This commit is contained in:
parent
78cb4768e4
commit
adfbd772d8
1 changed files with 3 additions and 3 deletions
|
|
@ -55,11 +55,11 @@ func DefaultDataDir() string {
|
||||||
home := homeDir()
|
home := homeDir()
|
||||||
if home != "" {
|
if home != "" {
|
||||||
if runtime.GOOS == "darwin" {
|
if runtime.GOOS == "darwin" {
|
||||||
return filepath.Join(home, "Library", "Ethereum")
|
return filepath.Join(home, "Library", "EtherGem")
|
||||||
} else if runtime.GOOS == "windows" {
|
} else if runtime.GOOS == "windows" {
|
||||||
return filepath.Join(home, "AppData", "Roaming", "Ethereum")
|
return filepath.Join(home, "AppData", "Roaming", "EtherGem")
|
||||||
} else {
|
} else {
|
||||||
return filepath.Join(home, ".ethereum")
|
return filepath.Join(home, ".ethergem")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// As we cannot guess a stable location, return empty and handle later
|
// As we cannot guess a stable location, return empty and handle later
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue