mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-01-18 10:22:51 +00:00
use cross-platform filepath function
This commit is contained in:
parent
b29cbbfef6
commit
16d62b4536
@ -3,7 +3,7 @@ package statuskeycardgo
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
type pairingStore struct {
|
type pairingStore struct {
|
||||||
@ -17,7 +17,7 @@ func newPairingStore(storage string) (*pairingStore, error) {
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
parent := path.Dir(p.path)
|
parent := filepath.Dir(p.path)
|
||||||
err = os.MkdirAll(parent, 0750)
|
err = os.MkdirAll(parent, 0750)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user