Skip to content

Commit

Permalink
pref:研发商店敏感接口签名校验优化 TencentBlueKing#10759
Browse files Browse the repository at this point in the history
  • Loading branch information
carlyin0801 committed Sep 6, 2024
1 parent c233181 commit 6d8c60d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ abstract class ArchiveStorePkgToBkRepoServiceImpl : ArchiveStorePkgServiceImpl()
if (signFilePaths.isNullOrEmpty() && storeType == StoreTypeEnum.DEVX) {
signFilePaths = mutableListOf(disposition.fileName)
// 如果压缩包内没有配置签名文件则把已解压的文件删除
File(storeArchivePath).walk().filter { it.name != disposition.fileName }.forEach { file ->
File(storeArchivePath).listFiles()?.filter { it.name != disposition.fileName }?.forEach { file ->
file.deleteRecursively()
}
}
Expand Down

0 comments on commit 6d8c60d

Please sign in to comment.