check_path: 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)
Value
Either TRUE or FALSE if error is FALSE. Either TRUE or
an error if error is 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.