From 00a08898424e506050e5e75919ad1a6256947b80 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Wed, 6 Nov 2019 20:30:26 +1100 Subject: [PATCH] made os.chdir play nicer with the filesystem --- module/osutil.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/osutil.lua b/module/osutil.lua index aa3bdf9..979a52d 100644 --- a/module/osutil.lua +++ b/module/osutil.lua @@ -10,7 +10,7 @@ function os.chdir(p) -- changes the current working directory of the calling pro end p = "/"..table.concat(np,"/") end - if fs.exists(p) and fs.list(p) then + if fs.list(p) then os.setenv("PWD",p) else return false, "no such directory"