"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
Fix issues identified by go vet -shadow - fixes #530
Nick Craig-Wood5a3b109e25a8
diff --git a/dropbox/dropbox.go b/dropbox/dropbox.goindex 3f5a3b152..cbfdccd04 100644--- a/dropbox/dropbox.go+++ b/dropbox/dropbox.go@@ -366,13 +366,13 @@ func (f *Fs) listOneLevel(out fs.ListOpts, dir string) {if dir != "" {root += "/" + dir}- entry, err := f.db.Metadata(root, true, false, "", "", metadataLimit)+ dirEntry, err := f.db.Metadata(root, true, false, "", "", metadataLimit)if err != nil {out.SetError(errors.Wrap(err, "couldn't list single level"))return}- for i := range entry.Contents {- entry := &entry.Contents[i]+ for i := range dirEntry.Contents {+ entry := &dirEntry.Contents[i]remote, err := strip(entry.Path, root)if err != nil {out.SetError(err)diff --git a/fs/operations.go b/fs/operations.goindex d688ce87d..c1b00cdec 100644--- a/fs/operations.go+++ b/fs/operations.go@@ -514,13 +514,13 @@ func readFilesMaps(fdst Fs, fdstIncludeAll bool, fsrc Fs, fsrcIncludeAll bool, dlist := func(fs Fs, includeAll bool, pMap *map[string]Object, pErr *error) {defer wg.Done()Log(fs, "Building file list")- dstFiles, listErr := readFilesMap(fs, includeAll, dir)+ files, listErr := readFilesMap(fs, includeAll, dir)if listErr != nil {ErrorLog(fs, "Error building file list: %v", listErr)*pErr = listErr} else {Debug(fs, "Done building file list")- *pMap = dstFiles+ *pMap = files}}