Skip to content

Commit

Permalink
Fix node id of recycle items
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Feb 14, 2023
1 parent c490456 commit 6511dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/tree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ func (t *Tree) readRecycleItem(ctx context.Context, spaceID, key, path string) (
if err != nil {
return
}
nodeIDRegep := regexp.MustCompile(`.*/nodes/(.*)`)
nodeIDRegep := regexp.MustCompile(`.*/nodes/(.*)\.T\..*`)
nodeID = nodeIDRegep.ReplaceAllString(deletedNodePath, "$1")
nodeID = strings.ReplaceAll(nodeID, "/", "")

Expand Down

0 comments on commit 6511dea

Please sign in to comment.