"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
fs: fix --dump filters not always appearing
Nick Craig-Woodfef1b615856a
diff --git a/fs/registry.go b/fs/registry.goindex 937d5c1f0..9d46e2602 100644--- a/fs/registry.go+++ b/fs/registry.go@@ -531,7 +531,22 @@ func (oi *OptionsInfo) load() error {// their values read from the options, environment variables and// command line parameters.func GlobalOptionsInit() error {- for _, opt := range OptionsRegistry {+ var keys []string+ for key := range OptionsRegistry {+ keys = append(keys, key)+ }+ sort.Slice(keys, func(i, j int) bool {+ // Sort alphabetically, but with "main" first+ if keys[i] == "main" {+ return true+ }+ if keys[j] == "main" {+ return false+ }+ return keys[i] < keys[j]+ })+ for _, key := range keys {+ opt := OptionsRegistry[key]err := opt.load()if err != nil {return err