shadow-file-match

shadow-file-match is a compiled Lisp function in `shadowfile.el'.

(shadow-file-match PATTERN FILE &optional REGEXP)

Return t if PATTERN matches FILE.
If REGEXP is supplied and non-nil, the file part of the pattern is a regular
expression, otherwise it must match exactly. The sites and usernames must
match---see `shadow-same-site'. The pattern must be in full ange-ftp format,
but the file can be any valid filename. This function does not do any
filename expansion or contraction, you must do that yourself first.