ensure-directories aka create-directories
Lassi Kortela 31 Jul 2020 10:46 UTC
SRFI 170 is missing one of the most useful (and commonly missing, and
tricky/error-prone to manually implement) OS procedures:
(ensure-directory "foo")
* Create directory "foo" while also creating any missing parent directories.
* If "foo" already exists and is a directory, silently succeed.
* If "foo" (or one of its parents) already exists but is not a
directory, raise an exception.
* On file system error, raise an exception as usual.