An abstraction for managing a 'current directory' stack.
The dynamic var *the-dir* holds the current directory.
Use with-dir to push a new absolute (or more usefully)
relative directory onto the stack, which will pop when the
scope exits. Use canonical to get the canonical File
of a path in terms of the current directory context.
An abstraction for managing a 'current directory' stack. The dynamic var `*the-dir*` holds the current directory. Use `with-dir` to push a new absolute (or more usefully) relative directory onto the stack, which will pop when the scope exits. Use `canonical` to get the canonical File of a path in terms of the current directory context.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |