63 posts
Location
The Netherlands
Posted 27 November 2012 - 05:29 AM
Hey, another (stupid) question… How to do like: fs.list("../lol")?
../ doesnt work, /../ doesnt work too… :(/>]
Rickydaan
2088 posts
Location
South Africa
Posted 27 November 2012 - 06:21 AM
What do you mean it doesn't work? All you have to do is:
fs.list("directory") -- It's not that hard? :P/>
What does it do you when try it?
3790 posts
Location
Lincoln, Nebraska
Posted 27 November 2012 - 06:30 AM
So the directory name is "lol"? if so, just do fs.list("lol")
If the directory is ".lol" use fs.list(".lol")
1688 posts
Location
'MURICA
Posted 27 November 2012 - 06:55 AM
Normally "../" means "the directory above the current one", and I don't think FS takes the current directory into account, it only goes from the root.
It might be helpful to know that shell.getDir() can get the current directory, though.
63 posts
Location
The Netherlands
Posted 28 November 2012 - 03:21 AM
Thx king, I hope that will help me with my bigga code :3 It uses a bunch of different API's, and i dont want all things in the root so they need to go a folder up… Thx anyway