Open mcoconnor opened 1 year ago
Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.
This is still relevant, I am trying to find time to update the PR
Context
One of the more useful tools in
glob
is being able to use the**
operator to match patterns at any point in the tree; however, that requires therecursive
flag to be turned on in theglob.glob
function: https://docs.python.org/3.9/library/glob.html#glob.globIt appears that that has not been used: https://github.com/zappa/Zappa/blob/f2f03ba8b58c9e2bdbbff7b5e8c905e3a8c08021/zappa/core.py#L638 and https://github.com/zappa/Zappa/blob/f2f03ba8b58c9e2bdbbff7b5e8c905e3a8c08021/zappa/core.py#L770
However, the
**
operator is used in the example in the docs: https://github.com/zappa/Zappa/blame/f2f03ba8b58c9e2bdbbff7b5e8c905e3a8c08021/README.md#L951Expected Behavior
An
exclude_glob
entry with a**
, e.g."**/__pycache__"
should recurse through the directory tree to identify and eliminate matching pathsActual Behavior
**
operators are ignored byglob
Possible Fix
Add the
recursive=True
argument to each of the places whereexclude_glob
paths are usedSteps to Reproduce
exclude_glob
zappa package