R/has_zip_extension.R
has_zip_extension.Rd
Does a File have a Zip Extension (.zip, .7z)?
has_zip_extension(file, expected = c("zip", "7z"))
path(s) to file(s) to be checked for zip extension
expected file name extensions. Default: c("zip", "7z")
c("zip", "7z")
vector of logical
all(has_zip_extension(c("a.zip", "b.ZIP", "c.Zip", "d.7z", "e.7Z"))) # TRUE #> [1] TRUE has_zip_extension("a.txt") # FALSE #> [1] FALSE