Skip to content

Commit

Permalink
bug:公共构建机的插件缓存目录挪到工作空间的上一级目录 #9640
Browse files Browse the repository at this point in the history
  • Loading branch information
carlyin0801 committed Nov 10, 2023
1 parent 0b7016a commit b90ebac
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class BkDiskLruFileCache(
val snapshot = diskCache[ShaUtils.sha256(key)]
snapshot?.getInputStream(0)?.use { inputStream ->
// 将snapshot对象输出流写入输出文件
if (!outputFile.exists()) {
outputFile.parentFile.mkdirs()
}
FileOutputStream(outputFile).use { outputStream ->
val buffer = ByteArray(BUFFER_SIZE)
var bytesRead: Int
Expand Down

0 comments on commit b90ebac

Please sign in to comment.