Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Added directory/wildcard support #4

Merged
merged 1 commit into from Dec 13, 2012
Merged

Added directory/wildcard support #4

merged 1 commit into from Dec 13, 2012

Conversation

pluma
Copy link
Contributor

@pluma pluma commented Dec 13, 2012

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.

YoSmudge pushed a commit that referenced this pull request Dec 13, 2012
Added directory/wildcard support
@YoSmudge YoSmudge merged commit 3173269 into YoSmudge:master Dec 13, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants