"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
build: modernize with "go fix -reflecttypefor": use reflect.TypeFor
Nick Craig-Woode20e18d2e0e2
diff --git a/fs/config/configstruct/configstruct.go b/fs/config/configstruct/configstruct.goindex 4fa95fe1c..db2b7f512 100644--- a/fs/config/configstruct/configstruct.go+++ b/fs/config/configstruct/configstruct.go@@ -287,7 +287,7 @@ func setIfSameType(aPtr any, b any) bool {}// Special case: if target is []string and source is a slice or array- if aVal.Type() == reflect.TypeOf([]string(nil)) && (bVal.Kind() == reflect.Slice || bVal.Kind() == reflect.Array) {+ if aVal.Type() == reflect.TypeFor[[]string]() && (bVal.Kind() == reflect.Slice || bVal.Kind() == reflect.Array) {strSlice := make([]string, bVal.Len())ok := truefor i := 0; i < bVal.Len(); i++ {