Merge pull request #1 from mattn/fix-directory-timestamp
directory should have mod-time
This commit is contained in:
commit
31c3cc07c7
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user