File dir=new File(String path);
if(dir.exists())
{
   String files[]=dir.list();//将当前目录存到files数组
}