Skip to content

Commit

Permalink
fix trash restore
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Feb 17, 2022
1 parent 8438762 commit 7d2b818
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 @@ -511,7 +511,7 @@ func (t *Tree) RestoreRecycleItemFunc(ctx context.Context, spaceid, key, trashPa
}

// add the entry for the parent dir
err = os.Symlink("../"+recycleNode.ID, filepath.Join(targetNode.ParentInternalPath(), targetNode.Name))
err = os.Symlink("../../../../../"+lookup.Pathify(recycleNode.ID, 4, 2), filepath.Join(targetNode.ParentInternalPath(), targetNode.Name))
if err != nil {
return err
}
Expand Down

0 comments on commit 7d2b818

Please sign in to comment.