模型库、矢量文件
This commit is contained in:
@ -58,9 +58,9 @@ public class ModelLibraryController {
|
|||||||
// 参数校验
|
// 参数校验
|
||||||
String folderPath = createModelLibraryDto.getPath();
|
String folderPath = createModelLibraryDto.getPath();
|
||||||
String modelName = createModelLibraryDto.getName();
|
String modelName = createModelLibraryDto.getName();
|
||||||
// 处理路径、组合为完整模型库文件路径(.model后缀)
|
// 处理路径、组合为完整模型库文件路径
|
||||||
File parentDir = new File(folderPath);
|
File parentDir = new File(folderPath);
|
||||||
File modelFile = new File(parentDir, modelName + ".model");
|
File modelFile = new File(parentDir, modelName);
|
||||||
String modelPath = modelFile.getAbsolutePath().replace("\\", "/");
|
String modelPath = modelFile.getAbsolutePath().replace("\\", "/");
|
||||||
// 检查父目录是否存在、不存在则创建
|
// 检查父目录是否存在、不存在则创建
|
||||||
if (!parentDir.exists()) {
|
if (!parentDir.exists()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user