mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-25 12:42:10 -05:00
made os.chdir play nicer with the filesystem
This commit is contained in:
parent
4e276c9ccd
commit
00a0889842
@ -10,7 +10,7 @@ function os.chdir(p) -- changes the current working directory of the calling pro
|
|||||||
end
|
end
|
||||||
p = "/"..table.concat(np,"/")
|
p = "/"..table.concat(np,"/")
|
||||||
end
|
end
|
||||||
if fs.exists(p) and fs.list(p) then
|
if fs.list(p) then
|
||||||
os.setenv("PWD",p)
|
os.setenv("PWD",p)
|
||||||
else
|
else
|
||||||
return false, "no such directory"
|
return false, "no such directory"
|
||||||
|
Loading…
Reference in New Issue
Block a user