Fix bad code

This commit is contained in:
Flaviu Tamas 2015-06-10 17:28:20 -04:00
commit b4c5e06295
3 changed files with 36 additions and 21 deletions

View file

@ -1,10 +1,13 @@
import md5, re, os, strutils, osproc
let
markdownFilesGlob = getCurrentDir() / "content" / "*.md"
markdownFilesGlob = getCurrentDir() / "content" / "content"
configFilePath = getCurrentDir() / "validcodehashes.txt"
for filePath in walkFiles(markdownFilesGlob):
for filePath in walkDirRec(markdownFilesGlob):
if filePath.splitFile.ext != ".md":
continue
let file = open(filePath, fmRead)
let fileContents = file.readAll()
file.close()