about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-03-24T17·46+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-03-24T17·46+0000
commitc6178f0b038097584cbbac970ebdb3772de27763 (patch)
treef1786c81a1db945ed4f126fc114af62518cc74cd /src/libutil/util.hh
parentd1487d9015222c33680c7727c31e3b499c620610 (diff)
* Create missing log and temproots directories automatically (reported
  by Rob).

Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 2577f79e1b87..beb98fe7c6e9 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -107,6 +107,9 @@ void makePathReadOnly(const Path & path);
 /* Create a temporary directory. */
 Path createTempDir();
 
+/* Create a directory and all its parents, if necessary. */
+void createDirs(const Path & path);
+
 /* Create a file and write the given text to it.  The file is written
    in binary mode (i.e., no end-of-line conversions).  The path should
    not already exist. */