Skip to content

Commit

Permalink
Update pkg/spaces/utils.go
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern authored Feb 3, 2025
1 parent 8c11790 commit bf60503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/spaces/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func EncodeResourceID(r *provider.ResourceId) string {
}

// EncodeSpaceID encodes storage ID and path to create a space ID,
// in the format <storage_id>$<base32(<path>).
// in the format <storage_id>$base32(<path>).
func EncodeSpaceID(storageID, path string) string {
encodedPath := base32.StdEncoding.EncodeToString([]byte(path))
return fmt.Sprintf("%s$%s", storageID, encodedPath)
Expand Down

0 comments on commit bf60503

Please sign in to comment.