summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-03-10 22:23:17 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-03-10 22:23:17 -0700
commit89e46f760a11140db3cc4a4becd7a6941989c89a (patch)
treed23a73928d32640d4f64f6b6ae3b4780e903d703 /txr.1
parent34d4a240a1c7db27d56e65cbe7a5e9030c5c0377 (diff)
downloadtxr-89e46f760a11140db3cc4a4becd7a6941989c89a.tar.gz
txr-89e46f760a11140db3cc4a4becd7a6941989c89a.tar.bz2
txr-89e46f760a11140db3cc4a4becd7a6941989c89a.zip
* sysif.c (mkdir_nothrow_exists): New static function.
(ensure_dir): New function. (sysif_init): ensure_dir registered as intrinsic. * txr.1: ensure_dir documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.110
1 files changed, 9 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index 75794618..a8c10b07 100644
--- a/txr.1
+++ b/txr.1
@@ -23989,9 +23989,10 @@ of the system timer. Actual sleep times may be rounded up to the nearest 10
millisecond multiple on a system where timed suspensions are triggered by a 100
Hz tick.
-.coNP Function @ mkdir
+.coNP Functions @ mkdir and @ ensure-dir
.synb
.mets (mkdir < path <> [ mode ])
+.mets (ensure-dir < path <> [ mode ])
.syne
.desc
.code mkdir
@@ -24015,6 +24016,13 @@ for the newly created directory. If omitted, the requested permissions are
are subject to the system
.codn umask .
+The function
+.code ensure-dir
+is similar to
+.code mkdir
+except that it attempts to create all the missing parent directories
+as necessary, and does not throw an error if the directory exists.
+
.coNP Function @ chdir
.synb
.mets (chdir << path )