mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 16:24:14 +00:00
webdav: rename Client.Readdir to ReadDir
This is a more idiomatic name, and we've broken the API already to add the ctx argument.
This commit is contained in:
parent
751741d87e
commit
75d3041b41
@ -152,8 +152,8 @@ func (c *Client) Open(ctx context.Context, name string) (io.ReadCloser, error) {
|
|||||||
return resp.Body, nil
|
return resp.Body, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Readdir lists files in a directory.
|
// ReadDir lists files in a directory.
|
||||||
func (c *Client) Readdir(ctx context.Context, name string, recursive bool) ([]FileInfo, error) {
|
func (c *Client) ReadDir(ctx context.Context, name string, recursive bool) ([]FileInfo, error) {
|
||||||
depth := internal.DepthOne
|
depth := internal.DepthOne
|
||||||
if recursive {
|
if recursive {
|
||||||
depth = internal.DepthInfinity
|
depth = internal.DepthInfinity
|
||||||
|
Loading…
Reference in New Issue
Block a user