makeDirectory dir
i1 : dir = temporaryFileName() o1 = /tmp/M2-1925999-0/0
i2 : makeDirectory (dir|"/a/b/c")
i3 : removeDirectory (dir|"/a/b/c")
i4 : removeDirectory (dir|"/a/b")
i5 : removeDirectory (dir|"/a")
A filename starting with ~/ will have the tilde replaced by the home directory.