fix bug in io.open override

This commit is contained in:
Tom van Dijck 2015-03-27 09:18:13 -07:00
parent 1738c13263
commit dd87f019d0

View File

@ -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