Skip to content

Commit

Permalink
Merge pull request #3671 from vdiskg/fix-list-dir
Browse files Browse the repository at this point in the history
fix: listDir
  • Loading branch information
sestinj authored Jan 10, 2025
2 parents 7f9782f + a41a4bd commit 50e7b55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50e7b55

Please sign in to comment.