Skip to contents

Use ger_path() to view folder and file paths.

type

Return the relative or absolute path. The default is a relative path, which is the location of a file or folder relative to the current working directory (or folder). This means that it doesn't start with the root directory, but with the directory that you're currently in. Absolute paths are the exact location of a file or folder in the file system hierarchy. They begin with the root folder and includes all folders and subfolders necessary to locate the file or folder.

Usage

ger_path(..., tree = FALSE, type = "abs")

Arguments

...

arguments passed to fs::path_abs()

tree

logical, return a folder tree (via fs::dir_path())?

type

logical, relative ("rel") or absolute ("abs") path (default is absolute)

Value

file path(s) that are either normalized (type = FALSE) or relative.

Examples

# ger_path(".")