if (fileName.indexOf("_") < 0) 46. { 47. continue; 48. } 49. int last = fileName.lastIndexOf("_");// 最后一个下划线的位置 50. String filename1 = fileName.substring(0, last); 51. String filename2 = fileName.substring(last + 1, fileName 52. .length() - 4); 53. result = filename1 + "," + filename2 + ",file:/" + path + "/" 54. + fileName + ",4,false"; 55. System.out.println(result); 56. } 57. } 58. } 59. public List<String> getFileList(String path) 60. { 61. path = getFormatPath(path); 62. path = path + "/"; 63. File filePath = new File(path); 64. if (!filePath.isDirectory()) 65. { 66. return null; 67. } 68. String[] filelist = filePath.list(); 69. List<String> filelistFilter = new ArrayList<String>(); 70. for (int i = 0; i < filelist.length; i++) 71. { 72. String tempfilename = getFormatPath(path + filelist[i]); 73. filelist上一页 [1] [2] [3] [4] [5] [6] [7] 下一页
|