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 2.9.1

Returns

Promise of nothing