Asynchronously moves a file or directory from source to destination path

Example

FileSystem = require("FuseJS/FileSystem");

FileSystem.writeTextToFile("to-be-moved.txt", "hello world")
    .then(function() {
        return FileSystem.move("to-be-moved.txt", "destination-reached.txt");
    })
    .catch(function(err) {
        console.log("Unable to move file");
    });

Location

Namespace
Fuse.FileSystem
Package
Fuse.FileSystem 1.9.0

Returns

Promise of nothing