diff options
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 52ef2c6eb20e..7f3d41e76ef3 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -56,6 +56,9 @@ string readFile(const Path & path); /* Write a string to a file. */ void writeFile(const Path & path, const string & s); +/* Compute the sum of the sizes of all files in `path'. */ +unsigned long long computePathSize(const Path & path); + /* Delete a path; i.e., in the case of a directory, it is deleted recursively. Don't use this at home, kids. The second variant returns the number of bytes freed. */ |