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