aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/utils/filewalker.py
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-07-26 13:04:55 +0200
committerMatthias Baumgartner <dev@igsor.net>2023-07-26 13:04:55 +0200
commitbc6e80015844dfd4be44a877109e68798c26e79a (patch)
treef8ce09ab17a3d1434313abf7b2f51815758ce99b /bsie/utils/filewalker.py
parentd6a5c0f596a212f0e1d4e4b351b5b0e6857d74f7 (diff)
downloadbsie-bc6e80015844dfd4be44a877109e68798c26e79a.tar.gz
bsie-bc6e80015844dfd4be44a877109e68798c26e79a.tar.bz2
bsie-bc6e80015844dfd4be44a877109e68798c26e79a.zip
code style and type annotation fixes
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 ##