realFile: follow any symlinks, returning the path to a normal file or...

Description Usage Arguments Value Author(s)

View source: R/realFile.R

Description

Given a path, there are some file operations where we want to be sure we're dealing with the real file, and not a symlink to it. For a vector of paths, this function follows any symlinks along each path, returning the ultimate normal file or directory as a target.

Usage

1
realFile(path)

Arguments

paths

character vector of paths

Value

character value of the same length as path, with any symlinks followed so that each item returned is a path to a normal file or folder. For any item in path which doesn't exist, or for which the last symlink target doesn't exist, or for which there is a symlink loop, returns NA.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.