Skip to content

Commit

Permalink
Make Rm recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrizio Furano committed Dec 3, 2020
1 parent 4f6eb6d commit 95eceb3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/eosclient/eosgrpc/eosgrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -784,12 +784,14 @@ func (c *Client) rmdir(ctx context.Context, uid, gid, path string) error {
return err
}

msg := new(erpc.NSRequest_RmdirRequest)
msg := new(erpc.NSRequest_RmRequest)

msg.Id = new(erpc.MDId)
msg.Id.Path = []byte(path)
msg.Recursive = true
msg.Norecycle = true

rq.Command = &erpc.NSRequest_Rmdir{Rmdir: msg}
rq.Command = &erpc.NSRequest_Rm{Rm: msg}

// Now send the req and see what happens
resp, err := c.cl.Exec(ctx, rq)
Expand Down

0 comments on commit 95eceb3

Please sign in to comment.