Skip to content

Commit 4db56e3

Browse files
authored
Add allfiles.lst
1 parent 11c4c77 commit 4db56e3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

main.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type Option struct {
3636
}
3737

3838
func main() {
39-
fmt.Println("kcheck v1.4.2")
39+
fmt.Println("kcheck v1.4.3")
4040
fmt.Printf("build: %s(%s)\n", builddate, commit)
4141
fmt.Println("--------")
4242
Workdir, _ := os.Getwd()
@@ -58,6 +58,13 @@ func main() {
5858
} else if _, err := os.Stat("__metadata.metatxt"); !os.IsNotExist(err) {
5959
opt.Listname = "__metadata.metatxt"
6060
opt.OfficialMeta = true
61+
} else {
62+
if _, err := os.Stat("contents" + string(os.PathSeparator) + "allfiles.lst"); !os.IsNotExist(err) {
63+
opt.Listname = "contents" + string(os.PathSeparator) + "allfiles.lst"
64+
opt.OfficialType = true
65+
} else if _, err := os.Stat("allfiles.lst"); !os.IsNotExist(err) {
66+
opt.Listname = "allfiles.lst"
67+
opt.OfficialType = true
6168
} else {
6269
if _, err := os.Stat("prop" + string(os.PathSeparator) + "filepath.xml"); !os.IsNotExist(err) {
6370
opt.Listname = "prop" + string(os.PathSeparator) + "filepath.xml"

0 commit comments

Comments
 (0)