joliss / broccoli-static-compiler

This Broccoli compiler copies static files.
MIT License
13 stars 12 forks source link

Ignore folders when picking files with multiglob #13

Open ralphholzmann opened 10 years ago

ralphholzmann commented 10 years ago

I have a folder structure like:

images/
  <a few image files>
  emoji/
    <tons of emoji files>

Trying to pick files like:

var staticTree = pickFiles("app", {
  srcDir: '',
  files: [
    'images/{,*/}*',
  ],
  destDir: '/'
});

And it keeps choking because it's trying to treat images/emoji as a file, when its actually a directory with many files contained within it. Is there any harm in just ignoring directories in your multiglob results?