You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:30:06 UTC
[buildstream] 08/32: utils.py: Optimise get_scandir_dir_size()
This is an automated email from the ASF dual-hosted git repository.
root pushed a commit to branch testing/local-cache-expiry
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit a6de61192325d01d3eade242d640b3c1cd47e5fb
Author: James Ennis <ja...@codethink.com>
AuthorDate: Tue May 22 16:35:50 2018 +0100
utils.py: Optimise get_scandir_dir_size()
---
buildstream/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildstream/utils.py b/buildstream/utils.py
index df95d71..f3f9c6c 100644
--- a/buildstream/utils.py
+++ b/buildstream/utils.py
@@ -544,7 +544,7 @@ def save_file_atomic(filename, mode='w', *, buffering=-1, encoding=None,
# (str) The path whose size to check.
#
# Returns:
-# (int) The size on disk.
+# (int) The size on disk in bytes.
#
def _get_dir_size(path):
path = os.path.abspath(path)