feat: 添加前置的dicom文件删选,防止大量无关文件搞事情

This commit is contained in:
mozzie 2024-09-11 13:05:16 +08:00
parent 34c826353b
commit 9b905b7498

View File

@ -44,8 +44,7 @@ export const filterDicoms = async (
const filePath = path.join(dir, file.name); const filePath = path.join(dir, file.name);
if (file.isDirectory()) { if (file.isDirectory()) {
await filterDicoms(filePath, fileList); // 递归调用以遍历子目录 await filterDicoms(filePath, fileList); // 递归调用以遍历子目录
} else { } else if (await isDICOMFile(filePath)) {
// if (await isDICOMFile(filePath))
fileList.push(filePath); fileList.push(filePath);
} }
}) })