1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

* Doh! Path sizes need to be computed recursively of course.

(NIX-70)
This commit is contained in:
Eelco Dolstra 2006-11-24 20:24:14 +00:00
parent a76efaeb3f
commit c6a97e3b74
3 changed files with 28 additions and 6 deletions

View file

@ -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. */