"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
config: clear fs cache of stale entries when altering config - fixes #4811
Nick Craig-Wood3b2185709761
diff --git a/fs/config/config.go b/fs/config/config.goindex 4e48a7f7b..f2f0a7440 100644--- a/fs/config/config.go+++ b/fs/config/config.go@@ -18,6 +18,7 @@ import ("github.com/pkg/errors""github.com/rclone/rclone/fs"+ "github.com/rclone/rclone/fs/cache""github.com/rclone/rclone/fs/config/obscure""github.com/rclone/rclone/fs/fspath""github.com/rclone/rclone/fs/rc"@@ -316,6 +317,7 @@ func UpdateRemote(ctx context.Context, name string, keyValues rc.Params, doObscu}RemoteConfig(ctx, name)SaveConfig()+ cache.ClearConfig(name) // remove any remotes based on this config from the cachereturn nil}