"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: allow keys to be deleted from the config file
Nick Craig-Wood88ef475629ef
diff --git a/fs/config.go b/fs/config.goindex 4caa69482..9d5503234 100644--- a/fs/config.go+++ b/fs/config.go@@ -1196,6 +1196,13 @@ func ConfigFileSet(section, key, value string) {configData.SetValue(section, key, value)}+// ConfigFileDeleteKey deletes the config key in the config file.+// It returns true if the key was deleted,+// or returns false if the section or key didn't exist.+func ConfigFileDeleteKey(section, key string) bool {+ return configData.DeleteKey(section, key)+}+var matchEnv = regexp.MustCompile(`^RCLONE_CONFIG_(.*?)_TYPE=.*$`)// ConfigFileSections returns the sections in the config file