-
val path = "toolkit"
scala> os.pwd / (path + ".scala")
val res1: os.Path = /run/media/home/scarf/repo/etc/kata/toolkit.scala is this the intended way to add file extension to path? |
Beta Was this translation helpful? Give feedback.
Answered by
lihaoyi
Apr 6, 2025
Replies: 2 comments
-
Yes. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
scarf005
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
os.pwd / s"$path.scala"
works too