From aefdda9c43618dc42e379791533d65a2ae459987 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Fri, 30 Jan 2015 07:48:44 -0800 Subject: [PATCH] fix(fsrepo) don't enforce absolute path in datastore component we only actually care that it isn't tidle'd ~ --- repo/fsrepo/component/datastore.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/repo/fsrepo/component/datastore.go b/repo/fsrepo/component/datastore.go index 30a60aaca..931e9a9b8 100644 --- a/repo/fsrepo/component/datastore.go +++ b/repo/fsrepo/component/datastore.go @@ -3,7 +3,6 @@ package component import ( "errors" "path" - "path/filepath" "sync" datastore "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore" @@ -39,9 +38,6 @@ func init() { func InitDatastoreComponent(dspath string, conf *config.Config) error { // The actual datastore contents are initialized lazily when Opened. // During Init, we merely check that the directory is writeable. - if !filepath.IsAbs(dspath) { - return debugerror.New("datastore filepath must be absolute") // during initialization (this isn't persisted) - } p := path.Join(dspath, DefaultDataStoreDirectory) if err := dir.Writable(p); err != nil { return debugerror.Errorf("datastore: %s", err)