Skip to contents

Check if string contains any filetype or the provided filetype. If string is NULL, returns FALSE.

Usage

has_fileext(string = NULL, fileext = NULL, ignore.case = 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. If TRUE, case is ignored.