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




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




## Returns




* ` string `