...
|
...
|
@@ -51,6 +51,20 @@ public final class FileTool { |
|
|
}
|
|
|
return files;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取目录下的所有文件
|
|
|
* @param dir
|
|
|
* @return
|
|
|
*/
|
|
|
public static List<File> readAllDirectoryFiles(File dir){
|
|
|
List<File> files = new ArrayList<File>();
|
|
|
if (dir.exists() && dir.isDirectory()) {
|
|
|
files = (List<File>) FileUtils.listFiles(dir, null, false);
|
|
|
}
|
|
|
return files;
|
|
|
}
|
|
|
|
|
|
public static void writeWaybill(String path,String content,String waybillNo){
|
|
|
StringBuffer stringBuffer = new StringBuffer();
|
|
|
stringBuffer.append(xmlRootDirectory).append("/").append(path).append("/").append(DateUtil.getToday()).append("/").append(waybillNo).append(".log");
|
...
|
...
|
|