From 1ee82692670492a9b8168b5896fbb7cf2af7640f Mon Sep 17 00:00:00 2001 From: Zack Date: Fri, 27 May 2016 07:43:48 -0400 Subject: [PATCH] Fixed #49 Former-commit-id: 525ce05350d967ba0903c8f6d48e98f4856e542d [formerly be812ae567cd655feaeeb1ef7473113c4b5f3212] [formerly 58152373be0d18ce8eba0f70bc4bf0cba602c8ff [formerly b0d571adf08ac0090917392d7ad2d4247ef7564b [formerly 684fb3d18fbcbd4684ae0a4ed964d67b50074dce]]] Former-commit-id: cb9b9c90747f3786790b2c646a40d4b57d6933bd [formerly cab690c9895e1cb99f3e481f321647ee7e33d9d0] Former-commit-id: 738be03795f6517b7ed8eeeeda10af2e86d8a72a Former-commit-id: bd276c8ab4b62b4dc5d1ddb479aa05213c3a14ea --- routes.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 })