getwd()
KyraThompson67 total contributions
Published Oct 7, 2022
Contribute to Docs
The getwd()
function returns the current working directory as an absolute file path. Otherwise, it returns NULL
if a directory is not found.
Syntax
getwd()
The getwd()
function takes no parameters.
Example
The following example showcases the getwd()
function:
> getwd()[1] "/Users/kyra/Documents"
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.