@cryptotaxi247 / kubo / commits / aefdda9c4

fix(fsrepo) don't enforce absolute path in datastore component

we only actually care that it isn't tidle'd ~

Brian Tiger Chow committed Jan 30, 2015 at 07:48 UTC aefdda9c43618dc42e379791533d65a2ae459987
1 file changed -4
repo/fsrepo/component/datastore.go
-4
@@ -3,7 +3,6 @@ package component
3 import (
4 "errors"
5 "path"
6 - "path/filepath"
6 "sync"
7
8 datastore "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
@@ -39,9 +38,6 @@ func init() {
38 func InitDatastoreComponent(dspath string, conf *config.Config) error {
39 // The actual datastore contents are initialized lazily when Opened.
40 // During Init, we merely check that the directory is writeable.
42 - if !filepath.IsAbs(dspath) {
43 - return debugerror.New("datastore filepath must be absolute") // during initialization (this isn't persisted)
44 - }
41 p := path.Join(dspath, DefaultDataStoreDirectory)
42 if err := dir.Writable(p); err != nil {
43 return debugerror.Errorf("datastore: %s", err)