diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-19T17·27+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-19T17·27+0000 |
commit | 9898746ef3732979bf30e9048021b6232ddf15ac (patch) | |
tree | 77f1391387f0e28f5495104fed3e4227bbeb4af3 /src/libutil/util.hh | |
parent | fd7ac09f1073179d9ac439c3e9fb12a1bf00a7d5 (diff) |
* nix-env: a tool to manage user environments.
* Replace all directory reading code by a generic readDirectory() function.
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index e6b600eff8ce..d0e7b3ada873 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -73,6 +73,10 @@ string baseNameOf(const Path & path); /* Return true iff the given path exists. */ bool pathExists(const Path & path); +/* Read the contents of a directory. The entries `.' and `..' are + removed. */ +Strings readDirectory(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. */ void deletePath(const Path & path); |