FileSystemModule.createDirectory(path) Method (JS)
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 2.9.1
Returns
Promise
A Promise of nothing