mirror of
https://github.com/rclone/rclone.git
synced 2025-06-05 20:34:39 +08:00
config: convert --cache-dir value to an absolute path
This commit is contained in:
@ -89,7 +89,7 @@ func initPluginsOrError() error {
|
||||
initMutex.Lock()
|
||||
defer initMutex.Unlock()
|
||||
if !initSuccess {
|
||||
cachePath = filepath.Join(config.CacheDir, "webgui")
|
||||
cachePath = filepath.Join(config.GetCacheDir(), "webgui")
|
||||
PluginsPath = filepath.Join(cachePath, "plugins")
|
||||
pluginsConfigPath = filepath.Join(PluginsPath, "config")
|
||||
loadedPlugins = newPlugins(availablePluginsJSONPath)
|
||||
|
Reference in New Issue
Block a user