mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-15 18:02:58 +08:00
fix: 修复删除本地文件失败的问题
This commit is contained in:
@@ -613,7 +613,7 @@ class FileSystemPanel(
|
|||||||
|
|
||||||
private fun deleteRecursively(path: Path, rm: Boolean) {
|
private fun deleteRecursively(path: Path, rm: Boolean) {
|
||||||
if (path.fileSystem == FileSystems.getDefault()) {
|
if (path.fileSystem == FileSystems.getDefault()) {
|
||||||
FileUtils.deleteDirectory(path.toFile())
|
FileUtils.deleteQuietly(path.toFile())
|
||||||
} else if (path.fileSystem is SftpFileSystem) {
|
} else if (path.fileSystem is SftpFileSystem) {
|
||||||
val fs = path.fileSystem as SftpFileSystem
|
val fs = path.fileSystem as SftpFileSystem
|
||||||
if (rm) {
|
if (rm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user