directory should have mod-time

This commit is contained in:
Yasuhiro Matsumoto 2015-11-16 22:41:20 +09:00
parent fa9482a9f2
commit 87bbafc0c0

View File

@ -90,7 +90,7 @@ func (c *Client) ReadDir(path string) ([]os.FileInfo, error) {
if p.Type.Local == "collection" { if p.Type.Local == "collection" {
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)