fix_path: Fix path

View source: R/fix_path.R

fix_pathR Documentation

Fix path

Description

Take a prefix and a local file path or SubTreeFileSystem and return the correct SubTreeFileSystem. A bit like file.path for arrow SubTreeFileSystems.

Usage

fix_path(path, destination, verbose = FALSE)

Arguments

path

a sub prefix of the destination

destination

a local directory path or an arrow SubTreeFileSystem

verbose

TRUE /FALSE should the function be chatty?

Value

an arrow SubTreeFileSystem

Examples

temp_dir <- tempfile()
dir.create(temp_dir, recursive = TRUE)

fix_path("backup", temp_dir)


dataversionr documentation built on Aug. 18, 2022, 9:06 a.m.