cancel
Showing results for 
Search instead for 
Did you mean: 

Check folder is empty or not

sanketgosavi
Champ in-the-making
Champ in-the-making
Hi,

I want to check whether a folder is empty or not.
Is there any method to check it for jsNode in actions.js



Thanks
2 REPLIES 2

kaynezhang
World-Class Innovator
World-Class Innovator

var nodes = jsnode.childFileFolders(true, true);//get an array of child files and folders for the node.
if(0==nodes.length){
//empty
}

Hi,

I have tried above code but still not working.

Thanks