From 46439007cf417cbd9ac8049bb4122c890097a0fa Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 20:52:35 +0000 Subject: 20060303-partial --- module/filepat.m | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 module/filepat.m (limited to 'module/filepat.m') diff --git a/module/filepat.m b/module/filepat.m new file mode 100644 index 00000000..9d7dcd5b --- /dev/null +++ b/module/filepat.m @@ -0,0 +1,10 @@ +Filepat: module +{ + PATH: con "/dis/lib/filepat.dis"; + + # Turn file name with * ? [] into list of files. Slashes are significant. + expand: fn(pat: string): list of string; + + # See if file name matches pattern; slashes not treated specially. + match: fn(pat, name: string): int; +}; -- cgit v1.2.3