aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2025-03-26 19:56:40 +0100
committerDaniel Schadt <kingdread@gmx.de>2025-03-26 19:56:40 +0100
commit3fd8ad725d4aa3d945b6e74b5fc30f0a9c588545 (patch)
tree5152dfddf09683f3d9578f21e7dc6de10da45a2d
parentda4b6b27e041697b66d6813a9d290b2a6d2b3940 (diff)
downloadfietsboek-3fd8ad725d4aa3d945b6e74b5fc30f0a9c588545.tar.gz
fietsboek-3fd8ad725d4aa3d945b6e74b5fc30f0a9c588545.tar.bz2
fietsboek-3fd8ad725d4aa3d945b6e74b5fc30f0a9c588545.zip
fix variable shadowing
-rw-r--r--fietsboek/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fietsboek/util.py b/fietsboek/util.py
index 5a41b3f..5611c51 100644
--- a/fietsboek/util.py
+++ b/fietsboek/util.py
@@ -512,7 +512,7 @@ def recursive_size(path: Path) -> int:
:return: The combined size, in bytes.
"""
size = 0
- for root, _, files in os.walk(path):
+ for root, _folders, files in os.walk(path):
size += sum(os.path.getsize(os.path.join(root, fname)) for fname in files)
return size