Skip to contents

Alter the path of a file to a Parquet partition in another directory

Usage

path_set_dir(path, output_dir)

Arguments

path

A file path.

output_dir

New directory the file should be in.

Value

A character vector.

Examples

fs::file_temp(ext = ".sas7bdat") |> path_set_dir(fs::path_temp())
#> /tmp/RtmpPgLnQw/file19f76e729e4d.sas7bdat