Include starting path in blacklist check but not whitelist.

This commit is contained in:
voussoir 2021-06-04 13:06:10 -07:00
parent 1d555d20dc
commit b3e0b310c2
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -859,7 +859,7 @@ def walk(
# If for some reason the given starting directory is excluded by the
# exclude parameters.
if handle_exclusion(glob_directories, exclude_directories, path.basename, path.absolute_path):
if handle_exclusion(None, exclude_directories, path.basename, path.absolute_path):
return
# In the following loops, I found joining the os.sep with fstrings to be