check_path: Validate a path

View source: R/cli.R

check_pathR Documentation

Validate a path

Description

Makes sure that a path passed to a cloud function is in the right format.

Usage

check_path(path, error = TRUE)

Arguments

path

A path relative to the project folder root. Can contain only letters, digits, '-', '_', '.', spaces and '/' symbols.

error

if TRUE (default), throws an error if file is not a valid file path.

Value

Either TRUE or FALSE if error is FALSE. Either TRUE or an error if error is TRUE.


cloudfs documentation built on May 29, 2024, 11:08 a.m.