Exclude and include directory#32
Exclude and include directory#32jeromeroucou wants to merge 2 commits intoGlobalDataverseCommunityConsortium:masterfrom
Conversation
|
Seems like a reasonable addition. W.r.t. the -ex param - looks like a file will be excluded if it is in an excluded dir or by the regex, which seems reasonable to me. Given that I think the code allows multiple include/exclude dirs, I would hope that regexes wouldn't be needed for dir matching. |
|
For wiki page, I suggest the following documentation:
It's a proposition that can be rewritten. |
| println("Excluding directory pattern: " + absolutePathArg); | ||
| } else if (arg.startsWith("-indir")) { | ||
| String absolutePathArg = normalizePath(arg.substring(arg.indexOf(argSeparator) + 1)); | ||
| excludedDir.put(absolutePathArg, false); |
There was a problem hiding this comment.
This PR doesn't handle the include side yet?
This draft PR is a proof of concept to address issue #31This PR address issue #31
Two parameters have been added:
-exdirto exclude a folder and its subfolders by specifying its absolute path.-incdirto include a folder if a parent folder is excluded, specifying its absolute path.With this
POCPR done, some questions are still on:-exparameter already exists, allowing files to be excluded based on a regular expression. Will these two new parameters compete with it?