mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
replaced several path.* with filepath.* which is platform independent
This commit is contained in:
@@ -2,13 +2,14 @@ package ethdb
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"path/filepath"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
func newDb() *LDBDatabase {
|
||||
file := path.Join("/", "tmp", "ldbtesttmpfile")
|
||||
file := filepath.Join("/", "tmp", "ldbtesttmpfile")
|
||||
if common.FileExist(file) {
|
||||
os.RemoveAll(file)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user