feat: fix issue that resource provider.PathPrefix is not used in GetDirectResources() API (#4000)

This commit is contained in:
IsAurora6
2025-07-25 22:06:08 +08:00
committed by GitHub
parent 26a9ec8ee6
commit ac39722687

View File

@@ -28,7 +28,8 @@ func GetDirectResources(owner string, user string, provider *Provider, prefix st
} }
res := []*Resource{} res := []*Resource{}
objects, err := storageProvider.List(prefix) fullPathPrefix := util.UrlJoin(provider.PathPrefix, prefix)
objects, err := storageProvider.List(fullPathPrefix)
for _, obj := range objects { for _, obj := range objects {
resource := &Resource{ resource := &Resource{
Owner: owner, Owner: owner,