Skip to content

Commit

Permalink
Apply trash purge fix from the ocis driver
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Feb 16, 2021
1 parent 1768fc4 commit c708a1e
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 @@ -393,7 +393,7 @@ func (t *Tree) PurgeRecycleItemFunc(ctx context.Context, key string) (*node.Node
}

fn := func() error {
if err := os.Remove(deletedNodePath); err != nil {
if err := os.RemoveAll(deletedNodePath); err != nil {
log.Error().Err(err).Str("deletedNodePath", deletedNodePath).Msg("error deleting trash node")
return err
}
Expand Down

0 comments on commit c708a1e

Please sign in to comment.