---
layout: docs
title: createDirectory
id: class.Facebook.HackCodegen._Private.Filesystem.createDirectory
docid: class.Facebook.HackCodegen._Private.Filesystem.createDirectory
permalink: /docs/reference/class.Facebook.HackCodegen._Private.Filesystem.createDirectory/
---
# Facebook\\HackCodegen\\_Private\\Filesystem::createDirectory()




``` Hack
public static function createDirectory(
  string $path,
  int $umask = 511,
): void;
```




## Parameters




+ ` string $path `
+ ` int $umask = 511 `




## Returns




* ` void `