summaryrefslogtreecommitdiff
path: root/module/filepat.m
blob: 9d7dcd5b1fa88f8d4d63e4d3c5b24095d4e56ae5 (plain)
1
2
3
4
5
6
7
8
9
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;
};