SyntaxFix
Write A Post
Hire A Developer
Questions
For linux/unix OS, you can use the shell syntax
const shell = require('child_process').execSync ; const currentPath= `/path/to/name.png`; const newPath= `/path/to/another_name.png`; shell(`mv ${currentPath} ${newPath}`);
That's it!