Expand Path



examples/filesystem/path_expand.cr
some_path = "~/work"
path = Path[some_path].expand(home: true)
puts path

puts Path["~/other"].expand(home: true)
puts Path["~/other"].expand

/home/gabor/work
/home/gabor/other
/home/gabor/work/slides/crystal/~/other