Skip to main content

canonicalize

function

babashka.fs/canonicalize

(canonicalize [f] [f {:keys [:nofollow-links]}])
Returns the canonical `Path` for `f` via [File#getCanonicalPath](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html#getCanonicalPath()). Options: * [`:nofollow-links`](/README.md#nofollow-links), when set, falls back on [[absolutize]] + [[normalize]]. This function can be used as an alternative to [[real-path]] which requires files to exist.

No examples yet. Be the first to add one!