fs (version 1.6.3)

link_path: Read the value of a symbolic link

Description

Read the value of a symbolic link

Usage

link_path(path)

Value

A tidy path to the object the link points to.

Arguments

path

A character vector of one or more paths.

Examples

Run this code
.old_wd <- setwd(tempdir())
file_create("foo")
link_create(path_abs("foo"), "bar")
link_path("bar")

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

Run the code above in your browser using DataLab