Author Topic: Possible to get a file listing in a directory?  (Read 1711 times)

0 Members and 1 Guest are viewing this topic.

Offline TheToast

  • Major
  • *
  • Posts: 52
Possible to get a file listing in a directory?
« on: November 23, 2007, 05:47:35 pm »
Hi, i read about the possibility to download files, but is it possible to get a file listing, eg for getting the available Maps?

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Possible to get a file listing in a directory?
« Reply #1 on: November 23, 2007, 05:48:01 pm »
Using what, server scripting?

Offline TheToast

  • Major
  • *
  • Posts: 52
Re: Possible to get a file listing in a directory?
« Reply #2 on: November 23, 2007, 06:12:55 pm »
Using the TCP Ports (Adminport and the +10 Fileport)


With PHP and stuff it would be no problem, i think.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Possible to get a file listing in a directory?
« Reply #3 on: November 23, 2007, 06:58:24 pm »
No, it is not possible to do using the default command set available, though you could create a script for the server that creates your own command to do that (I think, I'm not all that familiar with the scripting core abilities) so you could do something like /showmaps that then triggers a script on the server to fetch a list of all maps installed

Offline TheToast

  • Major
  • *
  • Posts: 52
Re: Possible to get a file listing in a directory?
« Reply #4 on: November 23, 2007, 09:22:30 pm »
Ah ok, thanks, just wanted to know if i didn't find a command for it.