From b3e0b310c20fbbf2608802b5b8aa627e5a335450 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 4 Jun 2021 13:06:10 -0700 Subject: [PATCH] Include starting path in blacklist check but not whitelist. --- voussoirkit/spinal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voussoirkit/spinal.py b/voussoirkit/spinal.py index 3759a8e..39d2e5c 100644 --- a/voussoirkit/spinal.py +++ b/voussoirkit/spinal.py @@ -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