fix: 修复删除本地文件失败的问题

This commit is contained in:
hstyi
2025-01-07 12:07:14 +08:00
committed by hstyi
parent 6b6ceb1409
commit b9ed8258d1

View File

@@ -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) {