Skip to content

Commit

Permalink
Add cwd, fixes #58
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed May 4, 2022
1 parent 7adcefe commit 31f8b93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/babashka/fs.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1005,3 +1005,7 @@
"Returns true if OS is Windows."
[]
(str/starts-with? (System/getProperty "os.name") "Windows"))

(defn cwd
[]
(as-path (System/getProperty "user.dir")))

0 comments on commit 31f8b93

Please sign in to comment.