Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > file manipulation > makeDirectory(String)
next | previous | forward | backward | up | index | toc

makeDirectory(String) -- make a directory

Synopsis

Description

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.

See also

Ways to use this method: