hasFinalSlash: Does a String End with Slash?

View source: R/hasFinalSlash.R

hasFinalSlashR Documentation

Does a String End with Slash?

Description

Does a String End with Slash?

Usage

hasFinalSlash(x)

Arguments

x

vector of character

Value

vector of boolean being TRUE at indices where the elements in x end with a slash ("/")

Examples

(is_directory <- hasFinalSlash(c("a", "b/", "c", "d/")))

KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.