mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
common: pr update for datadir
This commit is contained in:
parent
9e384f5658
commit
e344ba8653
1 changed files with 3 additions and 3 deletions
|
|
@ -40,10 +40,10 @@ func FileExist(filePath string) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// AbsolutePath returns Datadir + filename, or filename if it is absolute.
|
// AbsolutePath returns datadir + filename, or filename if it is absolute.
|
||||||
func AbsolutePath(Datadir string, filename string) string {
|
func AbsolutePath(datadir string, filename string) string {
|
||||||
if filepath.IsAbs(filename) {
|
if filepath.IsAbs(filename) {
|
||||||
return filename
|
return filename
|
||||||
}
|
}
|
||||||
return filepath.Join(Datadir, filename)
|
return filepath.Join(datadir, filename)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue