Skip to content

Commit 7608892

Browse files
committed
fix: [OCISDEV-450] fix ocm path
1 parent 55f6a49 commit 7608892

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/graph/pkg/service/v0/utils.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import (
44
"context"
55
"encoding/base64"
66
"encoding/json"
7+
"fmt"
78
"io"
89
"net/http"
10+
"path"
911
"reflect"
1012

1113
gateway "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
@@ -544,7 +546,7 @@ func cs3ReceivedOCMSharesToDriveItems(ctx context.Context,
544546
// file shares
545547
resOpaqueID := "/"
546548
if receivedShares[0].GetResourceType() == storageprovider.ResourceType_RESOURCE_TYPE_FILE {
547-
resOpaqueID += receivedShares[0].GetName()
549+
resOpaqueID = path.Join(resOpaqueID, receivedShares[0].GetName())
548550
}
549551

550552
shareStat, err := gatewayClient.Stat(ctx, &storageprovider.StatRequest{

0 commit comments

Comments
 (0)