Skip to content

Commit

Permalink
Replaced oldfind with newfind command
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Geens committed Oct 14, 2024
1 parent 716e6b8 commit 4fc41c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/reva/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func writeToken(token string) {
}

func read(r *bufio.Reader) (string, error) {
text, err := r.ReadString('\n')
text, err := r.ReadString('\r')
if err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/eosclient/eosbinary/eosbinary.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ func (c *Client) Rename(ctx context.Context, auth eosclient.Authorization, oldPa

// List the contents of the directory given by path.
func (c *Client) List(ctx context.Context, auth eosclient.Authorization, path string) ([]*eosclient.FileInfo, error) {
args := []string{"oldfind", "--fileinfo", "--maxdepth", "1", path}
args := []string{"find", "--fileinfo", "--skip-version-dirs", "--maxdepth", "1", path}
stdout, _, err := c.executeEOS(ctx, args, auth)
if err != nil {
return nil, errors.Wrapf(err, "eosclient: error listing fn=%s", path)
Expand Down

0 comments on commit 4fc41c2

Please sign in to comment.