mirror of
https://github.com/rclone/rclone.git
synced 2025-12-23 03:33:28 +00:00
cache: use fs.CacheDir to make the default directory for the cache
NB this changes the default dir for the cache
This commit is contained in:
3
cache/cache_internal_test.go
vendored
3
cache/cache_internal_test.go
vendored
@@ -9,6 +9,7 @@ import (
|
||||
"io/ioutil"
|
||||
"math/rand"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"sync"
|
||||
"testing"
|
||||
@@ -42,7 +43,7 @@ func TestInternalInit(t *testing.T) {
|
||||
var err error
|
||||
|
||||
// delete the default path
|
||||
dbPath := path.Join(path.Dir(fs.ConfigPath), "cache", *RemoteName+".db")
|
||||
dbPath := filepath.Join(fs.CacheDir, "cache-backend", *RemoteName+".db")
|
||||
boltDb = cache.GetPersistent(dbPath, true)
|
||||
fstest.Initialise()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user