"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 linting errors
albertony9c451d9ac633
diff --git a/backend/fichier/fichier.go b/backend/fichier/fichier.goindex 1af73bdc2..8548d00c2 100644--- a/backend/fichier/fichier.go+++ b/backend/fichier/fichier.go@@ -521,10 +521,10 @@ func (f *Fs) About(ctx context.Context) (usage *fs.Usage, err error) {Path: "/user/info.cgi",ContentType: "application/json",}- var account_info AccountInfo+ var accountInfo AccountInfovar resp *http.Responseerr = f.pacer.Call(func() (bool, error) {- resp, err = f.rest.CallJSON(ctx, &opts, nil, &account_info)+ resp, err = f.rest.CallJSON(ctx, &opts, nil, &accountInfo)return shouldRetry(ctx, resp, err)})if err != nil {@@ -533,9 +533,9 @@ func (f *Fs) About(ctx context.Context) (usage *fs.Usage, err error) {// FIXME max upload size would be useful to use in Updateusage = &fs.Usage{- Used: fs.NewUsageValue(account_info.ColdStorage), // bytes in use- Total: fs.NewUsageValue(account_info.AvailableColdStorage), // bytes total- Free: fs.NewUsageValue(account_info.AvailableColdStorage - account_info.ColdStorage), // bytes free+ Used: fs.NewUsageValue(accountInfo.ColdStorage), // bytes in use+ Total: fs.NewUsageValue(accountInfo.AvailableColdStorage), // bytes total+ Free: fs.NewUsageValue(accountInfo.AvailableColdStorage - accountInfo.ColdStorage), // bytes free}return usage, nil}diff --git a/backend/fichier/structs.go b/backend/fichier/structs.goindex 7868066e8..89673f7f3 100644--- a/backend/fichier/structs.go+++ b/backend/fichier/structs.go@@ -183,6 +183,7 @@ type FoldersList struct {SubFolders []Folder `json:"sub_folders"`}+// AccountInfo is the structure how 1Fichier returns user infotype AccountInfo struct {StatsDate string `json:"stats_date"`MailRM string `json:"mail_rm"`