code: 9ferno

ref: 670f4e90ee6028ffee399e5a96fb5e4cd72fc7bc
dir: /module/filepat.m/

View raw version
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;
};