Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node filesystem change directory of a file

var fs = require('fs-extra')

fs.move('/tmp/somefile', '/tmp/does/not/exist/yet/somefile', function (err) {
 if (err) return console.error(err)
 console.log("success!")
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #filesystem #change #directory #file
ADD COMMENT
Topic
Name
1+7 =