shithub: purgatorio

ref: fb7dd4b3a868cb8987049c95bb32e6425a73c8b9
dir: purgatorio/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;
};