Commit 2a887df9 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

utils.CalculateDirectorySize: Don't redefine builtin


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarLuca Bigliardi <shammash@google.com>
parent 13998ef2
......@@ -1871,8 +1871,8 @@ def CalculateDirectorySize(path):
size = 0
for (curpath, _, files) in os.walk(path):
for file in files:
st = os.lstat(os.path.join(curpath, file))
for filename in files:
st = os.lstat(os.path.join(curpath, filename))
size += st.st_size
return BytesToMebibyte(size)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment