获取给定路径下的全部文件目录
具体代码
package direct.test;
import java.io.File;
public class GetDirectory {
public static void main(String[] args) {
String path = "E:/test1";
test(path);
}
}
package direct.test;
import java.io.File;
public class GetDirectory {
public static void main(String[] args) {
String path = "E:/test1";
test(path);
}
}