Fix missing last modified time on Stat()

This commit is contained in:
Yuriy Zaytsev 2023-06-14 12:14:44 +03:00 committed by Christoph Polcin
parent ea9c8490dd
commit 3cf99ede06

View File

@ -197,7 +197,7 @@ func (c *Client) Stat(path string) (os.FileInfo, error) {
f.path += "/" f.path += "/"
} }
f.size = 0 f.size = 0
f.modified = time.Unix(0, 0) f.modified = parseModified(&p.Modified)
f.isdir = true f.isdir = true
} else { } else {
f.size = parseInt64(&p.Size) f.size = parseInt64(&p.Size)