fix: listDir
This commit is contained in:
parent
7f9782fb2a
commit
a41a4bd2df
1 changed files with 1 additions and 1 deletions
|
|
@ -513,7 +513,7 @@ class IntelliJIDE(
|
|||
|
||||
override suspend fun listDir(dir: String): List<List<Any>> {
|
||||
val files = File(URI(dir)).listFiles()?.map {
|
||||
listOf(it.name, if (it.isDirectory) FileType.DIRECTORY else FileType.FILE)
|
||||
listOf(it.name, if (it.isDirectory) FileType.DIRECTORY.value else FileType.FILE.value)
|
||||
} ?: emptyList()
|
||||
|
||||
return files
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue