From 62b9fa77dbf3ff12e2e8a34a200507109f7b217d Mon Sep 17 00:00:00 2001 From: TAV2BJ Date: Wed, 18 Oct 2023 16:27:28 +0200 Subject: [PATCH] returns pointer to FileInfo from ReadDir - same as Stat does --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 656e003..1c906f7 100644 --- a/client.go +++ b/client.go @@ -151,7 +151,7 @@ func (c *Client) ReadDir(path string) ([]os.FileInfo, error) { f.isdir = false } - files = append(files, *f) + files = append(files, f) } r.Props = nil