mirror of
https://github.com/apple/pkl.git
synced 2026-07-05 20:51:51 +02:00
Normalize paths in pkl format (#1286)
This commit is contained in:
@@ -72,8 +72,8 @@ constructor(
|
|||||||
path.isDirectory() ->
|
path.isDirectory() ->
|
||||||
Files.walk(path)
|
Files.walk(path)
|
||||||
.filter { it.extension == "pkl" || it.name == "PklProject" }
|
.filter { it.extension == "pkl" || it.name == "PklProject" }
|
||||||
.map(ModuleSource::path)
|
.map { ModuleSource.path(it.toAbsolutePath().normalize()) }
|
||||||
else -> Stream.of(ModuleSource.path(path))
|
else -> Stream.of(ModuleSource.path(path.toAbsolutePath().normalize()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user