|
@@ -74,11 +74,21 @@ public class FileWriterUtil {
|
|
|
return decimal.divide(size).setScale(2,BigDecimal.ROUND_HALF_UP).toString() +"KB";
|
|
|
}
|
|
|
|
|
|
- public static void getCanRunList(List<File> fileList,File objPathFile) {
|
|
|
- File[] files = objPathFile.listFiles();
|
|
|
+ public static void getCanRunListObj(List<File> fileList, File unZipFile) {
|
|
|
+ File[] files = unZipFile.listFiles();
|
|
|
for (File file1 : files) {
|
|
|
if(file1.isFile()){
|
|
|
- if(file1.getName().endsWith(".obj") || file1.getName().endsWith(".las") || file1.getName().endsWith(".ply")
|
|
|
+ if( file1.getName().endsWith(".obj")){
|
|
|
+ fileList.add(file1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void getCanRunList(List<File> fileList,File unZipFile) {
|
|
|
+ File[] files = unZipFile.listFiles();
|
|
|
+ for (File file1 : files) {
|
|
|
+ if(file1.isFile()){
|
|
|
+ if( file1.getName().endsWith(".las") || file1.getName().endsWith(".ply")
|
|
|
|| file1.getName().endsWith(".osgb") || file1.getName().endsWith(".b3dm") || file1.getName().endsWith(".laz")){
|
|
|
fileList.add(file1);
|
|
|
}
|
|
@@ -129,4 +139,5 @@ public class FileWriterUtil {
|
|
|
throw new BusinessException(ResultCode.SPACE_ERROR);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|