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