Skip to content
Snippets Groups Projects
Commit b4f4d3c7 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

add filepath to get directory of the file, not hte file itself

parent 4cb78b36
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ import ( ...@@ -33,6 +33,7 @@ import (
"gitlab.com/elixxir/primitives/switchboard" "gitlab.com/elixxir/primitives/switchboard"
"gitlab.com/xx_network/comms/connect" "gitlab.com/xx_network/comms/connect"
goio "io" goio "io"
"path/filepath"
"strings" "strings"
"testing" "testing"
"time" "time"
...@@ -164,7 +165,8 @@ func (cl *Client) Login(password string) (*id.ID, error) { ...@@ -164,7 +165,8 @@ func (cl *Client) Login(password string) (*id.ID, error) {
// TODO: FIX ME // TODO: FIX ME
// While the old session is still valid, we are using the LocA storage to initialize the session // While the old session is still valid, we are using the LocA storage to initialize the session
locA, _ := cl.storage.GetLocation() locA, _ := cl.storage.GetLocation()
io.SessionV2, err = storage.Init(locA, password) dirname := filepath.Dir(locA)
io.SessionV2, err = storage.Init(dirname, password)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "Login: could not initialize v2 storage") return nil, errors.Wrap(err, "Login: could not initialize v2 storage")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment