summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildstream/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/utils.py b/buildstream/utils.py
index 7cff6c54b..5c11a363c 100644
--- a/buildstream/utils.py
+++ b/buildstream/utils.py
@@ -563,6 +563,9 @@ def save_file_atomic(filename, mode='w', *, buffering=-1, encoding=None,
#
# Get the disk usage of a given directory in bytes.
#
+# This function assumes that files do not inadvertantly
+# disappear while this function is running.
+#
# Arguments:
# (str) The path whose size to check.
#