Does string contain the specified file type or any file extension?
Source:R/has_filetype.R
has_fileext.Rd
Check if string contains any filetype or the provided filetype. If string is
NULL
, returns FALSE
.
Arguments
- string
String to be tested with or without filetype. Defaults to
NULL
.- fileext
File type to test against. Optional.
- ignore.case
If
FALSE
, the pattern matching is case sensitive. IfTRUE
, case is ignored.