"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: add multipliers for SizeSuffix
Fabian Möller9815b09d9085
diff --git a/fs/sizesuffix.go b/fs/sizesuffix.goindex 205b8d011..e3fe3fd57 100644--- a/fs/sizesuffix.go+++ b/fs/sizesuffix.go@@ -13,6 +13,17 @@ import (// SizeSuffix is an int64 with a friendly way of printing settingtype SizeSuffix int64+// Common multipliers for SizeSuffix+const (+ Byte SizeSuffix = 1 << (iota * 10)+ KibiByte+ MebiByte+ GibiByte+ TebiByte+ PebiByte+ ExbiByte+)+// Turn SizeSuffix into a string and a suffixfunc (x SizeSuffix) string() (string, string) {scaled := float64(0)