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




The absolute path




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




## Returns




+ ` string `