Skip to content

$fn.moveFile(src, dest)

This function was added in v3.4.0.

Moves a file registered in the file manager to the specified path on the file manager. [Asynchronous]

Arguments

NameTypeDescription
srcstringSource file path
deststringDestination file path

Return value

None

Sample

try {
await $fn.moveFile('/xxxx/yyyy/sss.dat', '/xxxx/zzzz/sss.dat');
} catch (err) {
console.log("Error", err);
}