From b9ed8258d1ed5b83835b2bf693fce782af7ba428 Mon Sep 17 00:00:00 2001 From: hstyi Date: Tue, 7 Jan 2025 12:07:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E6=96=87=E4=BB=B6=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/app/termora/transport/FileSystemPanel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/termora/transport/FileSystemPanel.kt b/src/main/kotlin/app/termora/transport/FileSystemPanel.kt index cb5b1d3..7dbf636 100644 --- a/src/main/kotlin/app/termora/transport/FileSystemPanel.kt +++ b/src/main/kotlin/app/termora/transport/FileSystemPanel.kt @@ -613,7 +613,7 @@ class FileSystemPanel( private fun deleteRecursively(path: Path, rm: Boolean) { if (path.fileSystem == FileSystems.getDefault()) { - FileUtils.deleteDirectory(path.toFile()) + FileUtils.deleteQuietly(path.toFile()) } else if (path.fileSystem is SftpFileSystem) { val fs = path.fileSystem as SftpFileSystem if (rm) {