没有人知道吗?
已知道路径,要得到这个路径下的所有文件名?
已知道路径,要得到这个路径下的所有文件名?
解决方案 »
- spring mvc3 应用jackson返回json时候无限循环
- 请教个IE8的问题,谢谢。
- java_ee_sdk-6u3-jdk7-windows-x64-ml.exe
- JSP 的文本与下拉列表如何连动
- 简单的JSP小问题
- 如何动态指定SELECT option为selected
- Jbuilder8不支持weblogic8么???
- 关于JSP页面全部些完后发布时TOMCAT的配置问题。
- 有关于javabean的scope是session的时候出现的问题.百思不得其解
- 为何我的weblogic不对jsp 解释
- ~~~新手急问~~~~
- 从表单接收数据,INSERT到数据库中 ......Holen
list
public String[] list()
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname.
If this abstract pathname does not denote a directory, then this method returns null. Otherwise an array of strings is returned, one for each file or directory in the directory. Names denoting the directory itself and the directory's parent directory are not included in the result. Each string is a file name rather than a complete path. There is no guarantee that the name strings in the resulting array will appear in any specific order; they are not, in particular, guaranteed to appear in alphabetical order.
Returns:
An array of strings naming the files and directories in the directory denoted by this abstract pathname. The array will be empty if the directory is empty. Returns null if this abstract pathname does not denote a directory, or if an I/O error occurs.
Throws:
SecurityException - If a security manager exists and its SecurityManager.checkRead(java.lang.String) method denies read access to the directory