From dd87f019d096e7f62cd61f725e71024f9b6f2162 Mon Sep 17 00:00:00 2001 From: Tom van Dijck Date: Fri, 27 Mar 2015 09:18:13 -0700 Subject: [PATCH] fix bug in io.open override --- src/base/io.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/io.lua b/src/base/io.lua index 885b6e13..e7981e5a 100644 --- a/src/base/io.lua +++ b/src/base/io.lua @@ -11,7 +11,7 @@ -- premake.override(io, "open", function(base, fname, mode) - if mode and mode:find("w") then + if mode and (mode:find("w") or mode:find("a")) then local dir = path.getdirectory(fname) ok, err = os.mkdir(dir) if not ok then