Macaulay2 » Documentation
Packages » Macaulay2Doc :: changeDirectory
next | previous | forward | backward | up | index | toc

changeDirectory -- change the current working directory

Synopsis

Description

Change the current working directory to dir.

i1 : dir = temporaryFileName()

o1 = /tmp/M2-2532269-0/0
i2 : makeDirectory dir

o2 = /tmp/M2-2532269-0/0
i3 : changeDirectory dir

o3 = /tmp/M2-2532269-0/0/
i4 : currentDirectory()

o4 = /tmp/M2-2532269-0/0/

If dir is omitted, then the current working directory is changed to the user's home directory.

See also

For the programmer

The object changeDirectory is a compiled function.