Asynchronously creates a directory.

Example

var FileSystem = require("FuseJS/FileSystem");

FileSystem.createDirectory(FileSystem.dataDirectory + "/" + "new-directory")
    .then(function() {
        console.log("Directory created!");
    }, function(error) {
        console.log("Error trying to create directory.");
    });

Location

Namespace
Fuse.FileSystem
Package
Fuse.FileSystem 1.11.2

Returns

Promise

A Promise of nothing