FileUtils.mkdir

A wrapper for the POSIX mkdir() function. The mkdir() function attempts to create a directory with the given name and permissions. The mode argument is ignored on Windows. See your C library manual for more details about mkdir(). Since 2.6

class FileUtils
static
int
mkdir
(
string filename
,
int mode
)

Parameters

filename string

a pathname in the GLib file name encoding (UTF-8 on Windows)

mode int

permissions to use for the newly created directory

Return Value

Type: int

0 if the directory was successfully created, -1 if an error occurred

Meta