FileUtils.mkdirWithParents

Create a directory if it doesn't already exist. Create intermediate parent directories as needed, too. Since 2.8

class FileUtils
static
int
mkdirWithParents
(
string pathname
,
int mode
)

Parameters

pathname string

a pathname in the GLib file name encoding

mode int

permissions to use for newly created directories

Return Value

Type: int

0 if the directory already exists, or was successfully created. Returns -1 if an error occurred, with errno set.

Meta