Navigation
This version will reach end of life on Feb 2018. To upgrade, go to the Learn more about upgrading your version of MongoDB.

mkdir()

On this page

Description

mkdir(path)

Creates a directory at the specified path. This method creates the entire path specified if the enclosing directory or directories do not already exit.

This method is equivalent to mkdir -p with BSD or GNU utilities.

The mkdir() method has the following parameter:

Parameter Type Description
path string A path on the local filesystem.
←   md5sumFile() pwd()  →