chickadee » fnmatch

Outdated egg!

This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.

If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.

fnmatch

CHICKEN Scheme bindings for fnmatch(3). Provides glob-like pattern matching for filenames using shell wildcard patterns.

Example use

    
(fnmatch "dir/*.scm" "dir/foo.scm") ;; => #t
(fnmatch "dir/*.scm" "dir/foo.txt") ;; => #f

API

fnmatch

  
(fnmatch path pattern #!key (escape #t) (pathname #t) (period #f))

Tests a pathname against a pattern, returning #t for a match or #f for no match.

Keyword arguments: