Check if the path starts with the dir path.
Usage
is_sub_path(x, dir, n = nchar(dir))Note
You may want to normalize the values of the x and dir arguments
first (with normalize_path()), to make sure the path separators
are consistent.
Check if the path starts with the dir path.
is_sub_path(x, dir, n = nchar(dir))You may want to normalize the values of the x and dir arguments
first (with normalize_path()), to make sure the path separators
are consistent.