diff --git a/routes.go b/routes.go index 02b2db9..d0b86dc 100644 --- a/routes.go +++ b/routes.go @@ -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 })