+ Reply to Thread
Results 1 to 3 of 3

Thread: Return list of files in a folder?

  1. #1
    Senior Member
    Join Date
    Nov 2004
    Posts
    122
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Return list of files in a folder?

    Can a plugin look at a folder on the server and list the files in there?

    I want to populate my "choose map" dropdown automactically. So to add new maps I just just drop the file into that folder on the server.

  2. #2
    Electrotank jobem's Avatar
    Join Date
    Apr 2004
    Posts
    996
    Thanks
    0
    Thanked 24 Times in 17 Posts
    That feature is not built into ES. You can create a directory, check to see if it exists, create files, check if they exist, delete files/directories, etc. But you cannot load a list of directories or a list of files in a directory.
    ------
    Jobe Makar
    @jobemakar
    http://www.electrotank.com

    YouTube ElectroServer video tutorials
    http://www.youtube.com/user/ElectrotankInc

  3. #3
    Electrotank
    Join Date
    Apr 2004
    Posts
    623
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Oops, small correction, a Java plugin can do this very easily. Just use the java.io.File object. If you don't want to write the whole plugin in Java, you can use PluginInterop to call a small Java plugin that does just this and write everything else in AS.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts