xref: /inferno-os/module/filepat.m (revision 46439007cf417cbd9ac8049bb4122c890097a0fa)
1Filepat: module
2{
3	PATH:	con "/dis/lib/filepat.dis";
4
5	# Turn file name with * ? [] into list of files.  Slashes are significant.
6	expand:	fn(pat: string): list of string;
7
8	# See if file name matches pattern; slashes not treated specially.
9	match:	fn(pat, name: string): int;
10};
11