# currentDirectory -- current working directory

## Synopsis

• Usage:
currentDirectory()
• Outputs:
• the complete path to the current directory, together with an extra slash

## Description

 i1 : currentDirectory() o1 = /home/m2user/src/M2.git/M2/BUILD/dan/builds.tmp/ub22041-release-1.21-branch /Macaulay2/packages/Macaulay2Doc-temporary/

If a component of the path to the current directory no longer exist, an error will be signalled.

## For the programmer

The object currentDirectory is .