Ensures the entity path follows a valid structure with lowercase
letters, numbers, and underscores in each part. Entity paths may
have any number of parts (e.g., "data/srv_main", "models/maxdiff/v2",
or "project"), but cannot end with / or contain empty segments.
Usage
dl_check_entity(entity, verbose = FALSE)
Arguments
- entity
Character scalar defining the data-lake entity
(e.g. "data/srv_main", "models/maxdiff/v2", "project").
- verbose
Logical. If TRUE, prints validation messages.
Default is FALSE.
Value
Invisibly returns the cleaned entity string.
Examples
dl_check_entity("data/srv_main")
dl_check_entity("models/maxdiff/v2")
dl_check_entity("project", verbose = TRUE)
#> ✔ Entity "project" validated successfully with 1 part.