1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
This commit is contained in:
Zack 2016-05-27 07:43:48 -04:00
parent 04424b566e
commit 684fb3d18f

View File

@ -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
})