diff --git a/src/backend/ci/core/artifactory/biz-artifactory/src/main/kotlin/com/tencent/devops/artifactory/store/service/impl/ArchiveStorePkgToBkRepoServiceImpl.kt b/src/backend/ci/core/artifactory/biz-artifactory/src/main/kotlin/com/tencent/devops/artifactory/store/service/impl/ArchiveStorePkgToBkRepoServiceImpl.kt index 5dcac7bfe50..96bd91741a0 100644 --- a/src/backend/ci/core/artifactory/biz-artifactory/src/main/kotlin/com/tencent/devops/artifactory/store/service/impl/ArchiveStorePkgToBkRepoServiceImpl.kt +++ b/src/backend/ci/core/artifactory/biz-artifactory/src/main/kotlin/com/tencent/devops/artifactory/store/service/impl/ArchiveStorePkgToBkRepoServiceImpl.kt @@ -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() } }