mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
Modify DefaultDataDir
This commit is contained in:
parent
0d9a8207d6
commit
9762cbf101
1 changed files with 3 additions and 3 deletions
|
|
@ -38,11 +38,11 @@ func DefaultDataDir() string {
|
|||
home := homeDir()
|
||||
if home != "" {
|
||||
if runtime.GOOS == "darwin" {
|
||||
return filepath.Join(home, "Library", "Ethereum")
|
||||
return filepath.Join(home, "Library", "Ubiq")
|
||||
} else if runtime.GOOS == "windows" {
|
||||
return filepath.Join(home, "AppData", "Roaming", "Ethereum")
|
||||
return filepath.Join(home, "AppData", "Roaming", "Ubiq")
|
||||
} else {
|
||||
return filepath.Join(home, ".ethereum")
|
||||
return filepath.Join(home, ".ubiq")
|
||||
}
|
||||
}
|
||||
// As we cannot guess a stable location, return empty and handle later
|
||||
|
|
|
|||
Loading…
Reference in a new issue