We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3856d57 commit 65eb1ecCopy full SHA for 65eb1ec
src/main/kotlin/com/coder/toolbox/cli/downloader/CoderDownloadService.kt
@@ -141,8 +141,8 @@ class CoderDownloadService(
141
val buffer = ByteArray(DEFAULT_BUFFER_SIZE)
142
var bytesRead: Int
143
var totalRead = 0L
144
- // caching this because the settings store recomputes it every time
145
- val binaryName = localPath.name
+ // local path is a temporary filename, reporting the progress with the real name
+ val binaryName = localPath.name.removeSuffix(".tmp")
146
sourceStream.use { source ->
147
outputStream.use { sink ->
148
while (source.read(buffer).also { bytesRead = it } != -1) {
0 commit comments