expand-home
function
babashka.fs/expand-home
(expand-home [f])If `f` begins with a tilde (`~`), expand the tilde to the value
of the `user.home` system property. If the `f` begins with a
tilde immediately followed by some characters, they are assumed to
be a username. This is expanded to the path to that user's home
directory. This is (naively) assumed to be a directory with the same
name as the user relative to the parent of the current value of
`user.home`. Returns a `Path`
Examples
No examples yet. Be the first to add one!