(TK-315) Add a `normalized-path` replacement for raynes.fs version
Chris Price
8 years ago
4 | 4 |
* [TK-315](https://tickets.puppetlabs.com/browse/TK-315) - update to latest version
|
5 | 5 |
of `raynes.fs` to reduce downstream dependency conflicts.
|
6 | 6 |
* Add an `absolute-path` fn to replace the one that was removed from raynes.fs
|
|
7 |
* Add a `normalized-path` fn to replace the one that was removed from raynes.fs
|
7 | 8 |
|
8 | 9 |
## 1.2.0
|
9 | 10 |
|
613 | 613 |
returns a File object."
|
614 | 614 |
[path]
|
615 | 615 |
(.getPath (fs/absolute path)))
|
|
616 |
|
|
617 |
(defn normalized-path
|
|
618 |
"Replacement for raynes.fs/normalized-path, which was removed in raynes.fs 1.4.6.
|
|
619 |
Returns string representation of absolute path, as opposed to fs/normalized, which
|
|
620 |
returns a File object."
|
|
621 |
[path]
|
|
622 |
(.getPath (fs/normalized path)))
|
616 | 623 |
|
617 | 624 |
;; ## Temp files
|
618 | 625 |
|