...
|
...
|
@@ -5,6 +5,7 @@ import com.tianbo.util.Helper; |
|
|
import org.apache.commons.io.FileUtils;
|
|
|
|
|
|
import java.io.*;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Properties;
|
|
|
|
...
|
...
|
@@ -44,7 +45,10 @@ public final class FileTool { |
|
|
}
|
|
|
|
|
|
public static List<File> readDirectoryFiles(File dir){
|
|
|
List<File> files = (List<File>)FileUtils.listFiles(dir,new String[]{"xml"},false);
|
|
|
List<File> files = new ArrayList<File>();
|
|
|
if (dir.exists() && dir.isDirectory()) {
|
|
|
files = (List<File>) FileUtils.listFiles(dir, new String[]{"xml"}, false);
|
|
|
}
|
|
|
return files;
|
|
|
}
|
|
|
public static void writeWaybill(String path,String content,String waybillNo){
|
...
|
...
|
|