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

s3-about
Nick Craig-Wood 2017-12-11 18:54:28 +00:00
parent 84701e376a
commit 66558213e0
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}