This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Remove recursive/ignore option from ipfs.addFromFs and accept globs? #2885
Labels
exp/novice
Someone with a little familiarity can pick up
kind/enhancement
A net-new feature or improvement to an existing feature
It seems weird that we accept globs for the
ignore
option but not for thepath
parameter?We could accept globs there and then remove the
recursive
option.Going further you can also specify ignores in the
path
glob so we can retire theignore
option too:In the positive matching case this would also let the user specify the files they want, instead of having to specify a base dir, a recursive flag and then ignore patterns for all the files they don't want:
Perhaps we could pass the options object through to minimatch for really advanced usage - so you can match hidden files and so on?
The text was updated successfully, but these errors were encountered: