File dirFile=new File(path);
File []fileList=dirFile.listFiles();
for(File tempFile : fileList) {
if(tempFile.isFile()) {
String tempPath=tempFile.getParent();
String tempFileName=tempFile.getName();
System.out.println("Path="+tempPath);
System.out.println("FileName="+tempFileName);
/*** Do something withd tempPath and temp FileName ^^; ***/
}
}
댓글
댓글 쓰기