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:
parent
40bcc7a90b
commit
b1c0ae5e7d
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue