Merge pull request #1 from mattn/fix-directory-timestamp

directory should have mod-time
This commit is contained in:
Christoph Polcin 2015-12-09 09:32:20 +01:00
commit 31c3cc07c7

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)