"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
size: dont show duplicate object count when less than 1k
albertonye1b0417c286b
diff --git a/cmd/size/size.go b/cmd/size/size.goindex 3be067e69..be00952bb 100644--- a/cmd/size/size.go+++ b/cmd/size/size.go@@ -6,6 +6,7 @@ import ("encoding/json""fmt""os"+ "strconv""github.com/rclone/rclone/cmd""github.com/rclone/rclone/fs"@@ -69,7 +70,13 @@ of the size command.if jsonOutput {return json.NewEncoder(os.Stdout).Encode(results)}- fmt.Printf("Total objects: %s (%d)\n", fs.CountSuffix(results.Count), results.Count)+ count := strconv.FormatInt(results.Count, 10)+ countSuffix := fs.CountSuffix(results.Count).String()+ if count == countSuffix {+ fmt.Printf("Total objects: %s\n", count)+ } else {+ fmt.Printf("Total objects: %s (%s)\n", countSuffix, count)+ }fmt.Printf("Total size: %s (%d Byte)\n", fs.SizeSuffix(results.Bytes).ByteUnit(), results.Bytes)if results.Sizeless > 0 {fmt.Printf("Total objects with unknown size: %s (%d)\n", fs.CountSuffix(results.Sizeless), results.Sizeless)