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:
Simon Ser 2024-01-08 14:35:56 +01:00
parent 751741d87e
commit 75d3041b41

View File

@ -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