This commit is contained in:
锦恢 2025-01-10 21:09:20 +08:00
parent 27db47c467
commit a66628abff

View File

@ -344,17 +344,15 @@ class PrjManage {
const sourcePath = hdlPath.join(workspace, file); const sourcePath = hdlPath.join(workspace, file);
// 排除非 hdl 文件
if (hdlFile.isFile(sourcePath) && !hdlFile.isHDLFile(sourcePath)) {
continue;
}
if (file.startsWith(plname)) { if (file.startsWith(plname)) {
const targetFolder = hdlPath.join(workspace, 'prj', 'xilinx'); const targetFolder = hdlPath.join(workspace, 'prj', 'xilinx');
hdlFile.move(sourcePath, targetFolder); hdlFile.move(sourcePath, targetFolder);
} else { } else {
// 排除非 hdl 文件
if (hdlFile.isFile(sourcePath) && !hdlFile.isHDLFile(sourcePath)) {
continue;
}
const targetFolder = hdlPath.join(workspace, 'user', 'src'); const targetFolder = hdlPath.join(workspace, 'user', 'src');
hdlFile.move(sourcePath, targetFolder); hdlFile.move(sourcePath, targetFolder);
} }
} }