1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
Former-commit-id: 525ce05350d967ba0903c8f6d48e98f4856e542d [formerly be812ae567cd655feaeeb1ef7473113c4b5f3212] [formerly 58152373be0d18ce8eba0f70bc4bf0cba602c8ff [formerly b0d571adf08ac0090917392d7ad2d4247ef7564b [formerly 684fb3d18f]]]
Former-commit-id: cb9b9c90747f3786790b2c646a40d4b57d6933bd [formerly cab690c9895e1cb99f3e481f321647ee7e33d9d0]
Former-commit-id: 738be03795f6517b7ed8eeeeda10af2e86d8a72a
Former-commit-id: bd276c8ab4
This commit is contained in:
Zack 2016-05-27 07:43:48 -04:00
parent c0d4c099d0
commit 1ee8269267

View File

@ -628,7 +628,9 @@ func dumpEverything(folderpath string) {
var p WikiData var p WikiData
p.load(string(k)) p.load(string(k))
fmt.Println(string(k), len(p.CurrentText)) fmt.Println(string(k), len(p.CurrentText))
ioutil.WriteFile(path.Join(folderpath, string(k)), []byte(p.CurrentText), 0644) if len(p.CurrentText) > 0 {
ioutil.WriteFile(path.Join(folderpath, string(k)), []byte(p.CurrentText), 0644)
}
} }
return nil return nil
}) })