Skip to content

Commit

Permalink
Fix paths#listDir
Browse files Browse the repository at this point in the history
  • Loading branch information
Seggan committed Dec 28, 2023
1 parent 1a77126 commit e5b3784
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ object PathLib : NativeLibrary("__path") {
lib["isAbsolute"] = pathFunction { it.isAbsolute.metisValue() }
lib["listDir"] = pathFunction { path ->
val list = Value.List()
path.toFile().listFiles()?.forEach {
list.add(it.absolutePath.metisValue())
path.listDirectoryEntries().forEach {
list.add(it.absolutePathString().metisValue())
}
list
}
Expand Down

0 comments on commit e5b3784

Please sign in to comment.