cleanup
This commit is contained in:
parent
97e7a6239f
commit
e6a1621261
4
nav.go
4
nav.go
@ -106,8 +106,7 @@ func readdir(path string) ([]*file, error) {
|
||||
d, err := os.Open(fpath)
|
||||
if err != nil {
|
||||
dirCount = -2
|
||||
}
|
||||
|
||||
} else {
|
||||
names, err := d.Readdirnames(1000)
|
||||
d.Close()
|
||||
|
||||
@ -117,6 +116,7 @@ func readdir(path string) ([]*file, error) {
|
||||
dirCount = len(names)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
files = append(files, &file{
|
||||
FileInfo: lstat,
|
||||
|
Loading…
Reference in New Issue
Block a user