Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

path.join javascript one folder above

// Node.js program to demonstrate the   
// path.join() Method  
  
// Import the path module
const path = require('path');
   
// Getting the directory path one folder above
console.log("Current Directory: ", __dirname);
path3 = path.join(__dirname, "..");
console.log("Directory above:", path3);
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #javascript #folder
ADD COMMENT
Topic
Name
9+7 =