"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
protondrive: fix bug in digests parsing (#7164)
Chun-Hung Tseng9a66086fa0c1
diff --git a/backend/protondrive/protondrive.go b/backend/protondrive/protondrive.goindex 2f65264c5..cac3a4c81 100644--- a/backend/protondrive/protondrive.go+++ b/backend/protondrive/protondrive.go@@ -902,11 +902,18 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, opreturn err}+ var sha1Hash string+ if val, ok := fileSystemAttrs.Digests["SHA1"]; ok {+ sha1Hash = val+ } else {+ sha1Hash = ""+ }+o.id = linkIDo.originalSize = &fileSystemAttrs.Sizeo.modTime = modTimeo.blockSizes = fileSystemAttrs.BlockSizes- o.digests = &fileSystemAttrs.Digests+ o.digests = &sha1Hashreturn nil}diff --git a/go.mod b/go.modindex 859f229f7..c6a674335 100644--- a/go.mod+++ b/go.mod@@ -28,8 +28,8 @@ require (github.com/go-chi/chi/v5 v5.0.8github.com/google/uuid v1.3.0github.com/hanwen/go-fuse/v2 v2.2.1-0.20230410213758-80c1c8221982- github.com/henrybear327/Proton-API-Bridge v0.0.0-20230718092444-8d7db1ea7ba3- github.com/henrybear327/go-proton-api v0.0.0-20230717103708-031d819d74ab+ github.com/henrybear327/Proton-API-Bridge v0.0.0-20230723062517-e2f54121245f+ github.com/henrybear327/go-proton-api v0.0.0-20230723062344-776bc2954583github.com/hirochachacha/go-smb2 v1.1.0github.com/iguanesolutions/go-systemd/v5 v5.1.1github.com/jcmturner/gokrb5/v8 v8.4.4diff --git a/go.sum b/go.sumindex 6cdd792b6..b6e65c239 100644--- a/go.sum+++ b/go.sum@@ -297,10 +297,10 @@ github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Cgithub.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=-github.com/henrybear327/Proton-API-Bridge v0.0.0-20230718092444-8d7db1ea7ba3 h1:zHD8RHbznszGBR/jlpdFIy8ncXxIqxrso2dj11BWlb0=-github.com/henrybear327/Proton-API-Bridge v0.0.0-20230718092444-8d7db1ea7ba3/go.mod h1:wRQQcwkzqMaCqdX3iLDbBTp6woZ7+j0lZI4jW9SukDw=-github.com/henrybear327/go-proton-api v0.0.0-20230717103708-031d819d74ab h1:Lj7+orKyKsOo3UwlopF+IxC7RWdyboAi800RWHiI8Ig=-github.com/henrybear327/go-proton-api v0.0.0-20230717103708-031d819d74ab/go.mod h1:l42xBSOrCmkAxzWUHcoUsG/cP8m1hMhV72GoChOX3bg=+github.com/henrybear327/Proton-API-Bridge v0.0.0-20230723062517-e2f54121245f h1:jDQrsIwJqICOozOUS6o41Yc62+AfdmAx4Fs2Mumij0M=+github.com/henrybear327/Proton-API-Bridge v0.0.0-20230723062517-e2f54121245f/go.mod h1:2EULVajyoET4J2QMed3q6FJw2k/aawR6cplYkzqHTGA=+github.com/henrybear327/go-proton-api v0.0.0-20230723062344-776bc2954583 h1:Bbv0iyHKIr2ZXSOKcG4Ja8Z+NxWKdOVqGSLd3/SQTLk=+github.com/henrybear327/go-proton-api v0.0.0-20230723062344-776bc2954583/go.mod h1:l42xBSOrCmkAxzWUHcoUsG/cP8m1hMhV72GoChOX3bg=github.com/hirochachacha/go-smb2 v1.1.0 h1:b6hs9qKIql9eVXAiN0M2wSFY5xnhbHAQoCwRKbaRTZI=github.com/hirochachacha/go-smb2 v1.1.0/go.mod h1:8F1A4d5EZzrGu5R7PU163UcMRDJQl4FtcxjBfsY8TZE=github.com/huandu/xstrings v1.0.0/go.mod h1:4qWG/gcEcfX4z/mBDHJ++3ReCw9ibxbsNJbcucJdbSo=