Skip to content

Commit

Permalink
tweak Platform, cleanup README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
philwalk committed Oct 7, 2023
1 parent bed5f0d commit 7b39226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def main(args: Array[String]): Unit = {
}
// list child directories of "."
val cwd: Path = ".".path
for ( (p: Path) <- cwd.paths.filter { _.isDirectory }){
for ( p: Path <- cwd.paths.filter { _.isDirectory }){
printf("%s\n", p.norm)
}
}
Expand All @@ -61,7 +61,7 @@ Example `@atFile`
```

```scala
#!/usr/bin/env -S scala -cp @~/.scala3cp
#!/usr/bin/env -S scala -cp @/home/username/.scala3cp
import vastblue.pathextend.*

def main(args: Array[String]): Unit = {
Expand All @@ -71,7 +71,7 @@ def main(args: Array[String]): Unit = {
}
// list child directories of "."
val cwd: Path = ".".path
for ( (p: Path) <- cwd.paths.filter { _.isDirectory }){
for ( p: Path <- cwd.paths.filter { _.isDirectory }){
printf("%s\n", p.norm)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/vastblue/Platform.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ object Platform {
printf("--version: [%s]\n", getStdout(path.norm, "--version").take(1).mkString)
}
}
val cwd = ".".path
val cwd = ".".path.toAbsolutePath
for ((p: Path) <- cwd.paths if p.isDirectory) {
printf("%s\n", p.norm)
}
Expand Down

0 comments on commit 7b39226

Please sign in to comment.