---
layout: docs
title: getRootDir
id: class.Facebook.HackCodegen.HackCodegenConfig.getRootDir
docid: class.Facebook.HackCodegen.HackCodegenConfig.getRootDir
permalink: /docs/reference/class.Facebook.HackCodegen.HackCodegenConfig.getRootDir/
---
# Facebook\\HackCodegen\\HackCodegenConfig::getRootDir()




``` Hack
public function getRootDir(): string;
```




## Returns




- ` string `