Merge pull request #173 from versity/fix/issue-168

Issu 168
This commit is contained in:
Ben McClelland
2023-07-31 21:35:00 -07:00
committed by GitHub
+1 -1
View File
@@ -946,7 +946,7 @@ func (p *Posix) PutObject(ctx context.Context, po *s3.PutObjectInput) (string, e
err = f.link()
if err != nil {
return "", fmt.Errorf("link object in namespace: %w", err)
return "", s3err.GetAPIError(s3err.ErrExistingObjectIsDirectory)
}
for k, v := range po.Metadata {