Answers for "reanme file node"

3

fs renaming files

const fs = require("fs")

fs.rename("./testfile.txt", "./newtestfile.txt", (err) => {
	if (err) console.log(err)
})
Posted by: Guest on November-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language