summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-01-27 06:04:25 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-01-27 06:04:25 -0800
commit558f7e76cc334e85bc30bf5dd9b62fa8038832ef (patch)
tree53beb18f9e9c1b8f451f1c21e5c508a0cfe798ef /txr.1
parentb21778b7f432c9c5a9c3e5e442b2305cbcc0d524 (diff)
downloadtxr-558f7e76cc334e85bc30bf5dd9b62fa8038832ef.tar.gz
txr-558f7e76cc334e85bc30bf5dd9b62fa8038832ef.tar.bz2
txr-558f7e76cc334e85bc30bf5dd9b62fa8038832ef.zip
ensure-dir: return nil when exists.
* sysif.c (mkdir_nothrow_exists): Return nil in the existence case, when the object is a directory or a symlink to one. * txr.1: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.115
1 files changed, 10 insertions, 5 deletions
diff --git a/txr.1 b/txr.1
index ebee463c..bcbc1520 100644
--- a/txr.1
+++ b/txr.1
@@ -57494,13 +57494,18 @@ are subject to the system
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
+also creates a directory named
+.metn path .
+Unlike
+.codn mkdir ,
+it also attempt to create all the necessary parent directories,
+and does not throw an error if
.meta path
refers to an existing object, if that object is a directory or a symbolic
-link to a directory.
+link to a directory. Rather, in that case it returns
+.code nil
+instead of
+.codn t .
.coNP Function @ chdir
.synb