Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » system facilities » file manipulation » changeDirectory
next | previous | forward | backward | up | index | toc

changeDirectory -- change the current working directory

Description

Change the current working directory to dir.

i1 : dir = temporaryFileName()

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

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

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

o4 = /tmp/M2-29463-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.


The source of this document is in Macaulay2Doc/ov_system.m2:717:0.