azureblob: fix creation of directory markers

This also fixes the integration tests which is why we didn't notice this before!
This commit is contained in:
Nick Craig-Wood 2023-09-03 18:09:31 +01:00
parent 40bcc7a90b
commit b1c0ae5e7d
2 changed files with 4 additions and 4 deletions

View file

@ -2230,8 +2230,8 @@ func (o *Object) prepareUpload(ctx context.Context, src fs.ObjectInfo, options [
return ui, fmt.Errorf("can't upload to root - need a container")
}
// Create parent dir/bucket if not saving directory marker
_, isDirMarker := o.meta[dirMetaKey]
if !isDirMarker {
_, ui.isDirMarker = o.meta[dirMetaKey]
if !ui.isDirMarker {
err = o.fs.mkdirParent(ctx, o.remote)
if err != nil {
return ui, err