From 775675873829995ea11df2e826d1e5494ecdbb1f Mon Sep 17 00:00:00 2001 From: hstyi Date: Sun, 16 Mar 2025 10:05:11 +0800 Subject: [PATCH] fix: SFTP path not working --- src/main/kotlin/app/termora/sftp/FileSystemViewNav.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/kotlin/app/termora/sftp/FileSystemViewNav.kt b/src/main/kotlin/app/termora/sftp/FileSystemViewNav.kt index ed5f884..652aaca 100644 --- a/src/main/kotlin/app/termora/sftp/FileSystemViewNav.kt +++ b/src/main/kotlin/app/termora/sftp/FileSystemViewNav.kt @@ -166,6 +166,13 @@ class FileSystemViewNav( override fun actionPerformed(e: ActionEvent) { val name = textField.text.trim() if (name.isBlank()) return + try { + changeSelectedPath(fileSystem.getPath(name)) + } catch (e: Exception) { + if (log.isErrorEnabled) { + log.error(e.message, e) + } + } } }) }