Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

b2: send correct fileName when using --hard-delete - fixes #1905

Nick Craig-Wood66558213e064
diff --git a/b2/b2.go b/b2/b2.go
index 152c8fddf..80504ab2b 100644
--- a/b2/b2.go
+++ b/b2/b2.go
@@ -1392,7 +1392,7 @@ func (o *Object) Remove() error {
return errNotWithVersions
}
if *b2HardDelete {
- return o.fs.deleteByID(o.id, o.remote)
+ return o.fs.deleteByID(o.id, o.fs.root+o.remote)
}
return o.fs.hide(o.fs.root + o.remote)
}