Skip to content

Read the value of a symbolic link

Usage

link_path(path)

Arguments

path

A character vector of one or more paths.

Value

A tidy path to the object the link points to.

Examples

.old_wd <- setwd(tempdir())
file_create("foo")
link_create(path_abs("foo"), "bar")
link_path("bar")
#> /tmp/Rtmp1Q2EDG/foo

# Cleanup
file_delete(c("foo", "bar"))
setwd(.old_wd)