PDA

View Full Version : Return list of files in a folder?



townivan
03-10-2006, 11:24 PM
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.

jobem
03-10-2006, 11:47 PM
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.

webgeek
03-11-2006, 07:03 AM
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.