|
@@ -35,7 +35,8 @@ public class OBJToGLBUtil {
|
|
}
|
|
}
|
|
|
|
|
|
public static boolean checkObj(String objPath) {
|
|
public static boolean checkObj(String objPath) {
|
|
- File file1 = new File(objPath);
|
|
|
|
|
|
+ File file = new File(objPath);
|
|
|
|
+ File file1 = file.getParentFile();
|
|
File[] files = file1.listFiles();
|
|
File[] files = file1.listFiles();
|
|
if(files == null || files.length <=0){
|
|
if(files == null || files.length <=0){
|
|
throw new BusinessException(ResultCode.UPLOAD_FILE_NO_EXIST);
|
|
throw new BusinessException(ResultCode.UPLOAD_FILE_NO_EXIST);
|