Path-cash-..: Get the parent of the current Path

Description Value See Also Examples

Description

Get the parent of the current Path

Value

a new Path object, corresponding to the parent of the calling Path

See Also

Other Path: Path$., Path$dir, Path$join, Path$name, Path$new, Path$parent, Path$show, Path, %//%

Examples

1
2
3
4
5
path <- Path$new("root/parent/path")
print(glue::glue("path   : {path$show}",
                 "parent : {path$parent$show}",
                 "..     : {path$..$show}",
                 .sep = "\n"))

pathlibr documentation built on May 1, 2019, 8:22 p.m.