From 75d3041b41ffd081044d4c83d4476356f4489e0d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 8 Jan 2024 14:35:56 +0100 Subject: [PATCH] webdav: rename Client.Readdir to ReadDir This is a more idiomatic name, and we've broken the API already to add the ctx argument. --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index ae07251..8802ed7 100644 --- a/client.go +++ b/client.go @@ -152,8 +152,8 @@ func (c *Client) Open(ctx context.Context, name string) (io.ReadCloser, error) { return resp.Body, nil } -// Readdir lists files in a directory. -func (c *Client) Readdir(ctx context.Context, name string, recursive bool) ([]FileInfo, error) { +// ReadDir lists files in a directory. +func (c *Client) ReadDir(ctx context.Context, name string, recursive bool) ([]FileInfo, error) { depth := internal.DepthOne if recursive { depth = internal.DepthInfinity