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.
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.
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
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.