aboutsummaryrefslogtreecommitdiff
path: root/storage/local
diff options
context:
space:
mode:
Diffstat (limited to 'storage/local')
-rw-r--r--storage/local/local.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/storage/local/local.go b/storage/local/local.go
index 4869bb2..7dc59cb 100644
--- a/storage/local/local.go
+++ b/storage/local/local.go
@@ -26,12 +26,13 @@ type LocalStorage struct {
}
func LocalStorageFromConfig(conf config.Config, name string) (storage.Storage, error) {
- var path string
- if err := conf.Storage[name].Get("path", &path); err != nil {
+ var path_wrap struct{ Path string }
+
+ if err := conf.GetStorageConfData(name, &path_wrap); err != nil {
return nil, err
}
- return OpenLocalStorage(config.ExpandTilde(path))
+ return OpenLocalStorage(config.ExpandTilde(path_wrap.Path))
}
func OpenLocalStorage(path string) (l LocalStorage, err error) {