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

File.makeDir

File.makeDir($dirPath, $permissions = '775') -> false

Description

Create a directory if it does not exist.

The $dirPath is relative to the data/files directory.

It will 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.

File.makeDir('path/to/dir')

See Also