Jump to content




[FS] ../ doesnt work?


  • You cannot reply to this topic
4 replies to this topic

#1 rickydaan

  • Members
  • 93 posts
  • LocationThe 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

#2 remiX

  • Members
  • 2,076 posts
  • LocationSouth 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?

#3 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, 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")

#4 Kingdaro

    The Doctor

  • Members
  • 1,636 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.

#5 rickydaan

  • Members
  • 93 posts
  • LocationThe 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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users