Skip to content

Commit 4fc41c2

Browse files
committed
Replaced oldfind with newfind command
1 parent 716e6b8 commit 4fc41c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/reva/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func writeToken(token string) {
9696
}
9797

9898
func read(r *bufio.Reader) (string, error) {
99-
text, err := r.ReadString('\n')
99+
text, err := r.ReadString('\r')
100100
if err != nil {
101101
return "", err
102102
}

pkg/eosclient/eosbinary/eosbinary.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ func (c *Client) Rename(ctx context.Context, auth eosclient.Authorization, oldPa
692692

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

0 commit comments

Comments
 (0)