Implement directory count info (#85)

This commit is contained in:
Karol Woźniak authored and gokcehan committed 2017-06-03 14:12:43 +03:00
1 parent 9962b378a8
commit fe05105c88
7 files changed
+38 -1

No files matched your search

+2
View File
@@ -23,6 +23,7 @@ type file struct {
os.FileInfo
LinkState linkState
Path string
Count int
}
type filesSortable struct {
@@ -126,6 +127,7 @@ func readdir(path string) ([]*file, error) {
FileInfo: lstat,
LinkState: linkState,
Path: fpath,
Count: -1,
})
}
return fi, err