Added pattern support for .files and .subdirs methods.