Closed immerrr closed 8 years ago
This sounds good to me. I have a minor concern about backwards compatibility, but since exporters is not yet open sourced (will be in a couple of weeks) and you've been the early users of FSReader, if you're happy with changing the API, we're happy too. :)
Same here. Let's do it!
Right now FSReader only allows dir+pattern way of looking up inputs and sometimes to parallelise things we want to fetch the exact files matching that and distribute them evenly across subprocesses running actual exporters code.
I was thinking about the following way to accept input (i'm writing in yaml, but please imagine the same in json):
So the idea is simple:
input
element contains either a singleinput-unit
or a list of theminput-unit
is either a file or a dictionary withdir
and optionalpattern
keysWhat do you think?