8000 Fix FileAlreadyExistsException in case when ~/.ssh is a link to a dir… · coder/jetbrains-coder@a7dfd68 · GitHub
[go: up one dir, main page]

Skip to content

Commit a7dfd68

Browse files
committed
Fix FileAlreadyExistsException in case when ~/.ssh is a link to a directory
1 parent acea4a1 commit a7dfd68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/coder/gateway/sdk/CoderCLIManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class CoderCLIManager @JvmOverloads constructor(
302302
*/
303303
private fun writeSSHConfig(contents: String?) {
304304
if (contents != null) {
305-
Files.createDirectories(sshConfigPath.parent)
305+
sshConfigPath.parent.toFile().mkdirs()
306306
sshConfigPath.toFile().writeText(contents)
307307
}
308308
}

0 commit comments

Comments
 (0)
0