From 3cf99ede061f327c759b3c93787fa14b3a969a6b Mon Sep 17 00:00:00 2001 From: Yuriy Zaytsev Date: Wed, 14 Jun 2023 12:14:44 +0300 Subject: [PATCH] Fix missing last modified time on Stat() --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index d0fbaa1..656e003 100644 --- a/client.go +++ b/client.go @@ -197,7 +197,7 @@ func (c *Client) Stat(path string) (os.FileInfo, error) { f.path += "/" } f.size = 0 - f.modified = time.Unix(0, 0) + f.modified = parseModified(&p.Modified) f.isdir = true } else { f.size = parseInt64(&p.Size)