Only one directory will be made, so the components of the path p other than the last must already exist.
i1 : p = temporaryFileName() | "/" o1 = /tmp/M2-3354-0/0/ |
i2 : mkdir p |
i3 : isDirectory p o3 = true |
i4 : (fn = p | "foo") << "hi there" << close o4 = /tmp/M2-3354-0/0/foo o4 : File |
i5 : get fn o5 = hi there |
i6 : removeFile fn |
i7 : removeDirectory p |
A filename starting with ~/ will have the tilde replaced by the home directory.
The object mkdir is a compiled function.