Is this possible? Can I make a folder on my webserver named /gamelevels/ with .gamelevel extension, point a URL there and retrive all the .gamelevel files from there? Nothing like this seems to exist in java (googling/SO).
1 Answer
Some servers are configured to provide an HTML listing of contents when the URL of a directory is provided. If the server supplies that list, the client can parse the list for the contents.
It is considered a security hole for a server to provide that listing.
2 Comments
arynaq
It is just an issue of making our game as practical as possible and adding the ability to download new levels (very little time to be creative to create levels and artwork, most of it spent coding). I trust we will think about security at some point, if for no other reason than to learn.
Andrew Thompson
"the ability to download new levels" Deploy the app. using Java Web Start. It can not unly install/update the game as needed, but you can declare new levels as a 'lazy' download and they will be automatically downloaded when needed. Very easy for the end user.