mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Fixed #49
Former-commit-id: 525ce05350d967ba0903c8f6d48e98f4856e542d [formerly be812ae567cd655feaeeb1ef7473113c4b5f3212] [formerly 58152373be0d18ce8eba0f70bc4bf0cba602c8ff [formerly 684fb3d18f
]]
Former-commit-id: cb9b9c90747f3786790b2c646a40d4b57d6933bd [formerly cab690c9895e1cb99f3e481f321647ee7e33d9d0]
Former-commit-id: 738be03795f6517b7ed8eeeeda10af2e86d8a72a
This commit is contained in:
parent
c7559f1b04
commit
bd276c8ab4
@ -628,7 +628,9 @@ func dumpEverything(folderpath string) {
|
||||
var p WikiData
|
||||
p.load(string(k))
|
||||
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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user