alumna / reflect

Reflect the contents of one directory to another. At the speed of light. :zap:
MIT License
16 stars 1 forks source link

Glob filter for reflect #29

Open innermatrix opened 2 months ago

innermatrix commented 2 months ago

I'd like to reflect source to destination, just the way reflect does right now, but I'd like to limit the files reflected using a glob.

Like, for example reflect({src, dst, filter: ["**/*.png", "*.json"]})

paulocoghi commented 3 weeks ago

Thanks @innermatrix for the feature request! I agree it will be interesting to provide such functionality, so I will add it to my backlog.

My plan is to only use a glob interpreter when a filter is passed, as per your suggestion, to ensure no performance penalty when reflect is used without globs.