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 31928bd commit 88a34e0Copy full SHA for 88a34e0
src/main/kotlin/io/snyk/plugin/services/download/CliDownloader.kt
@@ -40,6 +40,9 @@ class CliDownloader {
40
41
fun downloadFile(cliFile: File, cliVersion: String, indicator: ProgressIndicator): File {
42
indicator.checkCanceled()
43
+ if (!cliFile.parentFile.exists()){
44
+ Files.createDirectories(cliFile.parentFile.toPath())
45
+ }
46
val downloadFile = try {
47
File.createTempFile(cliFile.name, ".download", cliFile.parentFile)
48
} catch (e: Exception) {
0 commit comments