diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-03-10 22:23:17 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-03-10 22:23:17 -0700 |
commit | 89e46f760a11140db3cc4a4becd7a6941989c89a (patch) | |
tree | d23a73928d32640d4f64f6b6ae3b4780e903d703 /txr.1 | |
parent | 34d4a240a1c7db27d56e65cbe7a5e9030c5c0377 (diff) | |
download | txr-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.1 | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 ) |