Posted 27 August 2013 - 02:25 PM
Hello, I've bumped into a problem I hope to get solved..
It doesn't give me an error code or anything but I just wanted to know how this works..
So the problem is that "SomeOtherDir" is a folder and it doesn't print that.. I have tested using shell.dir() also.
So how would I check if the dir inside a dir is a dir?
It doesn't give me an error code or anything but I just wanted to know how this works..
local rDir = shell.dir() --This is the default folder
shell.setDir("SomeDir") -- Sets it to the dir I want
if fs.isDir(shell.resolve(".").."SomeOtherDir") then print("It was a dir!") end -- Checks if the dir inside the dir is a dir(Wow.. That was alot of dir)
NOTE: This isn't the exact code I'm using, Just a similiar to itSo the problem is that "SomeOtherDir" is a folder and it doesn't print that.. I have tested using shell.dir() also.
So how would I check if the dir inside a dir is a dir?