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-28376-1/ |
i2 : mkdir p |
i3 : isDirectory p o3 = true |
i4 : (fn = p | "foo") << "hi there" << close o4 = /tmp/M2-28376-1/foo o4 : File |
i5 : get fn o5 = hi there |
i6 : removeFile fn |
i7 : removeDirectory p |