Version: v0.8.1 - Beta.  We welcome contributors & feedback.

File.makeDir

$dir.makeDir($permissions='775') -> null

Description

Create a directory if it does not exist.

It will also create all missing subdirectories in the given path.

The $permissions argument is a string representing an octal permissions mask for the new directory. This is ignored on Windows.

dir'files:/some/path'.makeDir()

dir'files:/some/path'.makeDir('755')

See Also