aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/utils/filewalker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bsie/utils/filewalker.py')
-rw-r--r--bsie/utils/filewalker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsie/utils/filewalker.py b/bsie/utils/filewalker.py
index 3c36926..df72c38 100644
--- a/bsie/utils/filewalker.py
+++ b/bsie/utils/filewalker.py
@@ -21,11 +21,11 @@ def list_files(
for path in roots:
if not os.path.exists(path):
continue
- elif os.path.isdir(path) and recursive:
+ if os.path.isdir(path) and recursive:
for dirpath, _, filenames in os.walk(path, topdown=True, followlinks=follow_symlinks):
for filename in filenames:
yield os.path.join(dirpath, filename)
- elif os.path.isfile(path):
+ if os.path.isfile(path):
yield path
## EOF ##