Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fs renaming files

const fs = require("fs")

fs.rename("./testfile.txt", "./newtestfile.txt", (err) => {
	if (err) console.log(err)
})
 
PREVIOUS NEXT
Tagged: #fs #renaming #files
ADD COMMENT
Topic
Name
4+6 =