mirror of
https://github.com/GayPizzaSpecifications/dough.git
synced 2025-08-09 16:11:34 +00:00
Pizza Samples
This commit is contained in:
10
samples/fs-walk/src/commonMain/kotlin/main.kt
Normal file
10
samples/fs-walk/src/commonMain/kotlin/main.kt
Normal file
@ -0,0 +1,10 @@
|
||||
import gay.pizza.dough.fs.PlatformFsProvider
|
||||
import gay.pizza.dough.fs.walk
|
||||
|
||||
fun main() {
|
||||
val currentWorkingDirectory = PlatformFsProvider.currentWorkingDirectory
|
||||
for (item in currentWorkingDirectory.walk()) {
|
||||
val relative = item.relativeTo(currentWorkingDirectory)
|
||||
println(relative.fullPathString)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user