From ddc2445104c6dfd7f729ca0fd70b8427f32f96e7 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Wed, 7 Jun 2023 00:12:15 +1000 Subject: [PATCH] actually handle append file modes --- module/fs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/fs.lua b/module/fs.lua index 0287eba..bc8e161 100644 --- a/module/fs.lua +++ b/module/fs.lua @@ -54,7 +54,7 @@ function fs.open(path,mode) -- string string -- table -- Opens file *path* with if mode:find("r") then fobj.read = fread end - if mode:find("w") then + if mode:find("w") or mode:find("a") then fobj.write = fwrite end return fobj