test2

 

 

/**
 * 获取图片名称
 * @param folderName
 * @return
 */
public static List<String> getFolderJPGFileName(String folderName){
    List<String> list_name = new ArrayList<String>();
    String[] list_fileNames = null;
    File dir = new File(folderName);
    if(!dir.isDirectory()) {
        return list_name;
    }
    
    list_fileNames = dir.list();
    
    for(String indexFileName:list_fileNames) {
        list_name.add(indexFileName);
    }
    
    return list_name;
}

 

 

######################

posted @ 2024-04-07 17:18  西北逍遥  阅读(1)  评论(0编辑  收藏  举报