Compare commits
1 Commits
d7606c4327
...
d1e5157008
Author | SHA1 | Date | |
---|---|---|---|
d1e5157008 |
@ -42,6 +42,9 @@ func (c *FSClient) Mkdir(ctx context.Context, paths ...string) error {
|
|||||||
|
|
||||||
func (c *FSClient) ReadDir(ctx context.Context, dir string) ([]FileInfo, error) {
|
func (c *FSClient) ReadDir(ctx context.Context, dir string) ([]FileInfo, error) {
|
||||||
res, err := c.client.ReadDir(ctx, &rpc.PathRequest{Path: dir})
|
res, err := c.client.ReadDir(ctx, &rpc.PathRequest{Path: dir})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return convertEntries(res.Entries), err
|
return convertEntries(res.Entries), err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user