Thanks to visit codestin.com Credit goes to github.com
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 afdc641 commit c65ac6cCopy full SHA for c65ac6c
src/main/kotlin/com/coder/toolbox/cli/CoderCLIManager.kt
@@ -167,6 +167,7 @@ class CoderCLIManager(
167
when (conn.responseCode) {
168
HttpURLConnection.HTTP_OK -> {
169
logger.info("Downloading binary to $localBinaryPath")
170
+ Files.deleteIfExists(localBinaryPath)
171
Files.createDirectories(localBinaryPath.parent)
172
val outputStream = Files.newOutputStream(
173
localBinaryPath,
0 commit comments