next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc > The Macaulay2 language > file manipulation > makeDirectory(String)

makeDirectory(String) -- make a directory

Synopsis

Description

i1 : dir = temporaryFileName()

o1 = /tmp/M2-247468-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.

See also