Browse Source

made os.chdir play nicer with the filesystem

pull/1/head
XeonSquared 4 years ago
parent
commit
00a0889842
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      module/osutil.lua

+ 1
- 1
module/osutil.lua View File

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


Loading…
Cancel
Save