samarudge/Squeezeit — pull request #4 by pluma (2012-12-13 11:55:35+00:00)
Title: Added directory/wildcard support

I've added support for directories with an optional file suffix. In other words the following paths are now supported:

- /foo/bar
- /foo/bar/*.js

In the first case if bar is a dir, all files in bar and its subfolders will be loaded. In the second case only the files ending in ".js" will be added.

It's a bit incomplete in that there's no way to add only files directly contained in the folder itself (and not its subfolders) and the wildcard doesn't allow prefixes. I would have used glob, except I can't find a way to make glob also search in subfolders and I favoured the more inclusive approach because this was born out of the need of having deep hierarchies of JS files that I don't want to have to keep track of in Squeezeit.