R/hasFinalSlash.R
hasFinalSlash.Rd
Does a String End with Slash?
hasFinalSlash(x)
vector of character
vector of boolean being TRUE at indices where the elements in
TRUE
x end with a slash ("/")
x
(is_directory <- hasFinalSlash(c("a", "b/", "c", "d/"))) #> [1] FALSE TRUE FALSE TRUE