This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
izaya
/
OC-PsychOS2
mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
Watch
1
Star
1
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
made os.chdir play nicer with the filesystem
pull/1/head
XeonSquared
4 years ago
parent
4e276c9ccd
commit
00a0889842
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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"
Write
Preview
Loading…
Cancel
Save