1.2.0 permalink Arrow_down_16x16
  • (pwd)
Returns current working directory as a String. (Like UNIX 'pwd'.)
Note: In Java, you cannot change the current working directory.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/io.clj:345 top

(defn pwd
  "Returns current working directory as a String.  (Like UNIX 'pwd'.)
  Note: In Java, you cannot change the current working directory."
  {:deprecated "1.2"}
  []
  (System/getProperty "user.dir"))
Vars in clojure.contrib.io/pwd: defn
Used in 0 other vars

Comments top

1 comment(s) for pwd.

Make sure you say (use 'clojure.contrib.io) before using pwd.

Log in to add a comment.