mirror of
https://github.com/rclone/rclone.git
synced 2025-08-19 01:46:31 +02:00
config: convert --cache-dir value to an absolute path
This commit is contained in:
@@ -222,7 +222,7 @@ func (s *server) serve() (err error) {
|
||||
|
||||
// Load the private key, from the cache if not explicitly configured
|
||||
keyPaths := s.opt.HostKeys
|
||||
cachePath := filepath.Join(config.CacheDir, "serve-sftp")
|
||||
cachePath := filepath.Join(config.GetCacheDir(), "serve-sftp")
|
||||
if len(keyPaths) == 0 {
|
||||
keyPaths = []string{
|
||||
filepath.Join(cachePath, "id_rsa"),
|
||||
|
Reference in New Issue
Block a user