Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change cwd node

console.log('Starting directory: ' + process.cwd());
try {
  process.chdir('/tmp');
  console.log('New directory: ' + process.cwd());
}
catch (err) {
  console.log('chdir: ' + err);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #cwd #node
ADD COMMENT
Topic
Name
7+1 =