URL目录中的Java列表文件? [英] Java list files in URL directory?
本文介绍了URL目录中的Java列表文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这可能吗?我可以在我的网络服务器上创建一个名为/gamelevels/扩展名为 .gamelevel 的文件夹,在那里指向一个 URL 并从那里检索所有 .gamelevel 文件吗?java中似乎不存在这样的东西(谷歌搜索/SO).
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).
推荐答案
某些服务器被配置为在提供目录 URL 时提供内容的 HTML 列表.如果服务器提供该列表,则客户端可以解析该列表的内容.
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.
服务器提供该列表被认为是一个安全漏洞.
这篇关于URL目录中的Java列表文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文