jquery - Javascript fetch all sub folder names from a directory -


i have requirement like, need subfolder names directory (provided path directory) using js or angular js. example, if have directory structure like,

   mainfolder           - subfolder1      - subfolder2      - subfolder3 

if give path main folder , should able subfolder names array ["subfolder1","subfolder2","subfolder3"]

please me

this kind of operation shouldn't done via client side javascript. should server side task, if use node.js -

function getdirectories(path) {   return fs.readdirsync(path).filter(function (file) {     return fs.statsync(path+'/'+file).isdirectory();   }); } 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -