From 87d111694b3a6e913452602f85369888d8f4cf62 Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Sun, 30 Aug 2020 20:38:52 -0700 Subject: [PATCH] Normalize cache dir path from config --- cointop/common/filecache/filecache.go | 2 +- cointop/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cointop/common/filecache/filecache.go b/cointop/common/filecache/filecache.go index 0a02d77..fdad1e9 100644 --- a/cointop/common/filecache/filecache.go +++ b/cointop/common/filecache/filecache.go @@ -16,7 +16,7 @@ import ( ) // DefaultCacheDir ... -var DefaultCacheDir = "/tmp1" +var DefaultCacheDir = "/tmp" // FileCache ... type FileCache struct { diff --git a/cointop/config.go b/cointop/config.go index b235b88..8f0b82e 100644 --- a/cointop/config.go +++ b/cointop/config.go @@ -335,7 +335,7 @@ func (ct *Cointop) loadRefreshRateFromConfig() error { func (ct *Cointop) loadCacheDirFromConfig() error { ct.debuglog("loadCacheDirFromConfig()") if cacheDir, ok := ct.config.CacheDir.(string); ok { - ct.State.cacheDir = cacheDir + ct.State.cacheDir = pathutil.NormalizePath(cacheDir) } return nil