diff --git a/fileops.py b/fileops.py index 78a670bc..a195bb06 100644 --- a/fileops.py +++ b/fileops.py @@ -86,7 +86,7 @@ def uspath(filename): def getstoryfiles(): list = [] for file in listdir("stories"): - if file.endswith(".json") and not file.endswith(".v2.json"): + if file.endswith(".json") and not file.endswith(".v2.json") and not os.path.isdir("stories/{}".format(file.replace(".json", ""))): ob = {} ob["name"] = file.replace(".json", "") f = open("stories/"+file, "r")