diff --git a/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/intrinsics/NativeLibrary.kt b/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/intrinsics/NativeLibrary.kt index a4f2b42..872c9f1 100644 --- a/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/intrinsics/NativeLibrary.kt +++ b/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/intrinsics/NativeLibrary.kt @@ -137,7 +137,7 @@ object PathLib : NativeLibrary("__path") { lib["listDir"] = pathFunction { path -> val list = Value.List() path.listDirectoryEntries().forEach { - list.add(it.absolutePathString().metisValue()) + list.add(it.pathString.metisValue()) } list }