File.fnmatch( pattern, path, [flags] ) â (true or false)File.fnmatch?( pattern, path, [flags] ) â (true or false)
Class Public methods
Returns true if path matches against pattern The pattern
is not a regular expression; instead it follows rules similar to shell
filename globbing. It may contain the following metacharacters:
*
Matches any file. Can be restricted by other values in the glob.
* will match all files; c* will match all files
beginning with c; *c will match all files