Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8c676c6

Browse files
authored
Fix FileAlreadyExistsException in case when ~/.ssh is a link to a directory (coder#345)
1 parent75382f0 commit8c676c6

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
privatefunwriteSSHConfig(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)

[8]ページ先頭

©2009-2025 Movatter.jp