feat: 添加前置的dicom文件删选,防止大量无关文件搞事情
This commit is contained in:
parent
34c826353b
commit
9b905b7498
|
@ -44,8 +44,7 @@ export const filterDicoms = async (
|
|||
const filePath = path.join(dir, file.name);
|
||||
if (file.isDirectory()) {
|
||||
await filterDicoms(filePath, fileList); // 递归调用以遍历子目录
|
||||
} else {
|
||||
// if (await isDICOMFile(filePath))
|
||||
} else if (await isDICOMFile(filePath)) {
|
||||
fileList.push(filePath);
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user